Switch to SHA1 and fix mri-1.8.7 bug finally