Add check for HAVE_MKSTEMP to make build work again on