TS-2347: replace use of tempnam() with mkstemp()
clean out references to SSLeay

TS-2393: Use canonical OpenSSL function names rather than old
compatibility defines