make getParent() thread safe
jni: better error message in log when can't load libraries, indent/reformat code (no logic changes)
jni load better message
Merge pull request #151 from adam-m/master

jni: better log message when loading libs, synchronize getParent() lazy loading