Update mac build system for upgrades change. Patch by dak180.