Fixed JNI build problem on Mac OS X.