build script for OSX