Remove HAVE_MKDTEMP

For now we provide simple `mkdtemp` for Windows, in the future we will
use libuv for that.
Remove USE_TMPNAM

tmpnam() is deprecated.