update build script for mac