Fix JNI on Android