Work around various native code crashes
Use correct JNI lib dir