Make compiling with JNI optional (enabled by default)