add -fPIC to java compile

This is necessary to get Java swig to compile.