fix warnings
compile on windows