Add optimization flags.