Added scripts to support auto builds for OSX
Improvements to the build scripts