Require Java 1.6
Fix clean script
Set fPIC for Linux and statically link to shared library