Fixed a compilation problem on windows