Fix compile on windows