On Windows windef.h must be included before winbase.h.