Add support for --enable-jni option to build the native shim library for Java support.