Update gcc optimization flags.