Move optimization flag selection out of cc wrapper
Simplify passing archflags to cc wrapper