Use older hash modules when hashlib isn't there