fixed OS X build script