fix compilation on windows