build: use better jni search macro
this shouldn't be needed anymore