fix c++ flags