Fix "unused parameter" warnings for undefined HAVE_JNI_H