JNI build failed with OpenJDK 7

An UNUSED(X) macro in OpenJDK 7 generated build error if jni.h was
included before stdstring.h. Also removed a printf formatting error
warning.