Fix various warnings when compiling under Win32.