Fixed Windows XP x86 crash.

Use MinGW's STDIO instead of MSVCRT's.