win32: various _MSC_VER warning fixups.