add multi-thread stuff for OpenSSL
Merge pull request #17 from fxdupont/osslthread

add multi-thread stuff for OpenSSL