Set global flags and arm optimizations, use -mcpu