use legacy jni extension on macosx