Fix compilation on windows