Fix warnings on win32