os x build script