Fix osx build script