Move away from OpenSSL MD5, to in-house MD5

Reason being that it'll be easier to compile on Windows. GMP, you're
next.