Fixed JNI functions with android lollipop