Using JNI_OnLoad to pre register a method table