Use __USE_MINGW_ANSI_STDIO for MinGW build

Use __USE_MINGW_ANSI_STDIO for ANSI C99 compatible implementation of printf()
and friends on MinGW
Provide a working strtok_r for MinGW