Make tempfiles on MinGW more tempfile-y...

Fail on clashes, instead of silently doing something awful. (O_TRUNC => O_EXCL).