Copied fixed md5HashFile to compiler version.
Essentially a move back to the previous version.
Various (mostly type-related) fixes.