Only check for heartbleed on specified TLS protocol versions
Fix compiling against openssl 0.9.8

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