Fixed SIGSEGV issue on startup

SIGSEGV was caused by trying to use the global JavaVM pointer in another
file, and the global JavaVM was erroneously defined to be static. This
meant that it was not initialized when dereferenced in another file.
Also, the StatConstants class needed to be instantiated and was not
previously instantiated whenever the NDK tried to load its static Object
fields at startup.