fixed compiler warning on windows