fix mac building script
Merge pull request #620 from LipuFei/mac-fix

fix mac building script