Some non-threatening fixes to some headers, as well as some casting changes that make winelib more win32 code compatible.