Fix to build on windows