darwinssl: aprintf() to allocate the session key

... to avoid using a fixed memory size that risks being too large or too
small.
smb: Use HAVE_PROCESS_H for process.h inclusion

Rather than testing against _WIN32 use the preferred HAVE_PROCESS_H
pre-processor define when including process.h.
tool_util.c: Use GetTickCount64 if it is available