try to fix g++ build error on windows