Fixed cxx flags set incorrectly