jni fix for android