Fix MD5 on 64-bit Linux

fixed MD5 to work properly on 64bits (causing HTTPS timeouts on 64bit Linux)