Fixed md5 calculatin routine for FreeBSD10.
This is temporal and requires some better fixing.