Add fence against using EVP_sha256 mech.

Which is only available in >=0.9.8
Dont use sha256 if openssl is older than 0.9.8.