update to avoid compiling warnings on windows