build script for mac