fix mac build script
Merge pull request #729 from LipuFei/fix_mac_build

fix mac build script