Index: tools/llcj/llcj.cpp
===================================================================
--- tools/llcj/llcj.cpp	(revision 69439)
+++ tools/llcj/llcj.cpp	(arbetskopia)
@@ -7,6 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "stdio.h"
+#include "string.h"
+#include "stdlib.h"
+
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/System/Path.h"
 #include "llvm/System/Program.h"
Index: tools/vmkit/Launcher.cpp
===================================================================
--- tools/vmkit/Launcher.cpp	(revision 69439)
+++ tools/vmkit/Launcher.cpp	(arbetskopia)
@@ -164,7 +164,7 @@
 #if WITH_N3
     mvm::CompilationUnit* CLICompiler = 
       mvm::VirtualMachine::initialiseCLIVM();
-    MyCl.vmlets["net"] = (mvm::VirtualMachine::createCLIVM);
+    MyCl.vmlets["net"] = (mvm::VirtualMachine* (*)(mvm::Object*))(mvm::VirtualMachine::createCLIVM);
     MyCl.compilers["net"] = CLICompiler;
 #endif
     MyCl.start();
Index: lib/N3/VMCore/VMClass.h
===================================================================
--- lib/N3/VMCore/VMClass.h	(revision 69439)
+++ lib/N3/VMCore/VMClass.h	(arbetskopia)
@@ -11,6 +11,7 @@
 #define N3_VM_CLASS_H
 
 #include "types.h"
+#include "stdarg.h"
 
 #include "mvm/Object.h"
 #include "mvm/Threads/Locks.h"
Index: lib/JnJVM/VMCore/JnjvmClassLoader.cpp
===================================================================
--- lib/JnJVM/VMCore/JnjvmClassLoader.cpp	(revision 69439)
+++ lib/JnJVM/VMCore/JnjvmClassLoader.cpp	(arbetskopia)
@@ -996,7 +996,7 @@
                                       const char* file) {
 
   char* soName = (char*)alloca(strlen(name) + strlen(DYLD_EXTENSION));
-  char* ptr = strrchr(name, '/');
+  char* ptr = (char*)strrchr(name, '/');
   sprintf(soName, "%s%s", ptr ? ptr + 1 : name, DYLD_EXTENSION);
   void* handle = dlopen(soName, RTLD_LAZY | RTLD_LOCAL);
   if (handle) {
Index: lib/JnJVM/VMCore/Jnjvm.cpp
===================================================================
--- lib/JnJVM/VMCore/Jnjvm.cpp	(revision 69439)
+++ lib/JnJVM/VMCore/Jnjvm.cpp	(arbetskopia)
@@ -512,7 +512,7 @@
 }
 
 extern "C" int sys_strnstr(const char *haystack, const char *needle) {
-  char * res = strstr(haystack, needle);
+  char * res = (char *)strstr(haystack, needle);
   if (res) return res - haystack;
   else return -1; 
 }
