Fix compilation error on windows