Cross-platform mktemp.