Fix build script for Macs