Fixed g++ flag error on Linux