fix conflicting optimization flags set by configure