Solaris: Backport our mkdtemp code paths to SunOS 5.10 i386

`mkdtemp` is not available on this architecture until SunOS 5.11.
Look up the symbol at runtime, and if missing, fall back to an
approximate implementation.
4 files changed