fix compilation when sha2 is not in sha.h for old openssl