Updated Mac OSX build script