Compute MD5 hashes in a cross-platform way to support both Mac OS X and Linux

Fixes #44.