Fixup optimization flags