Fix use of AC_CHECK_HEADER in JNI checks: set up CPPFLAGS beforehand.