Fix build when not using OpenSSL.

Apply some fixes to the alternative crypto solutions so they work again
with the new MD5 and SHA1 fallback code in the library.