update build script to with OS X build option