Fix compilation error that occurs when HAVE_MKSTEMP is not set