changed c++ flag for cross platform compatibility