macos build script fixes
osxdeploy now checks all Contents dir and fixes library paths with absolute reference to the BUILDROOT setting it to point to rpath.
Some other minor format fixes