fix some warning on windows