Fixed SWIG JNI compilation issues.