added check / define for mkstemp() / HAVE_MKSTEMP