added some commands to build_mac.pl for easier building on Mac