fix detection of .jnilib JNI libraries on Java 7 on Mac OS X