Fixed a compiler error on windows