Add a file permission setting code sample for Java6
Fix #29. Need to recreate native libraries for all OSes