Added IFDEF to ensure TLSv1.2 is only used when openssl >= 1.0.1 is used