convert the 32bit mac script to a single arch build script which accepts another argument