Fix warnings on Windows