Instead of using a define and conditional building of md5.c parts, move the internal-MD5 into a separate file.
Instead of using a define and conditional building of sha1.c parts, move the internal-SHA-1 into a separate file.