Set __USE_MINGW_ANSI_STDIO=1

.. For CFLAGS_FOR_HOST and CFLAGS_FOR_BUILD when
host or build contains mingw