simplify the compiler flags
let the compiler set the additional flags based on the optimization level
micromanaging the flags led to instability with different compilers