fix jni linking problem