configure: error out if jni is enabled and cannot be found