Fixes compilation problems and adds jar target for osx 64bit