wchar.h and stdlib.h: __USE_MINGW_ANSI_STDIO check should be against the value, not against the existence of the macro.
(cherry picked from commit 09564a0bef4cf9da72f2d4c4eb778909a696cc54)