--- jamvm/jamvm/src/jam.h
+++ jamvm/jamvm/src/jam.h
@@ -1229,6 +1229,7 @@
 extern unsigned long parseMemValue(char *str);
 extern int initVM(InitArgs *args);
 extern int VMInitialising();
+extern int initialiseAccess();
 
 /* shutdown */
 
--- jamvm/jamvm/src/thread.c
+++ jamvm/jamvm/src/thread.c
@@ -618,7 +618,7 @@
 
     /* Don't do anything if this is the main thread */
     if(thread->prev == NULL)
-        return;
+        return NULL;
 
     /* remove thread from thread group */
     executeMethod(group, (CLASS_CB(group->class))->
--- jamvm/jamvm/src/classlib/openjdk/classlib.h
+++ jamvm/jamvm/src/classlib/openjdk/classlib.h
@@ -163,5 +163,6 @@
 extern void cachePolyOffsets(CachedPolyOffsets *cpo);
 extern void freeResolvedPolyData(Class *class);
-extern updateIntrinsicCache();
+extern void updateIntrinsicCache();
+extern int classlibThreadPostInit();
 
 #define CACHED_POLY_OFFSETS                      \
