Build with OpenSSL older than version 1.0.1

TLS 1.1/1.2 support was introduced in OpenSSL version 1.0.1, but it is
better if this is optional, and that build is possible with older
versions of OpenSSL, as was the case before.