fix building jni library