Fix compiler warning on windows