osx build script