setup pthread-related callbacks and variables for OpenSSL (close #18)