Made mktemp compatible with OS X