[Bug 3613] tmpfile() not working with MinGW application