fixed warnings on windows