Implement POSIX-compliant mktemp for WIN32