fix compiling error on windows
Merge pull request #7115 from minggo/windows-fix

fix compiling error on windows