Detect POSIX threads at configure time and use them for OpenSSL.