Fixing SWIG JNI linking issues.