add jni lib for linux and macos