Fixed OS X build script