Fix cmake cxx flags.