Setting MAIN_ARCHITECTURE to avoid building -all arch multiple times