Replace the existing md5 implementation with the faster C md5 implementation used in Python

This is a drop-in replacement, the speedup is ~6x on 32-bit systems and ~1.6x on 64-bit systems.