Updating cmake for OSX
Updating Java bindings