get rid of additional optimization flags that may cause problems