Fix compiling against openssl 0.9.8

TLSv1.1 and TLSv1.2 are not supported in this version