Fix remaining win32 coverity warnings