cmake: mac: Reorder compiler flag selection a bit