Fix handling of __need_mbstate_t and __need_wint_t.