Use nettle for hashing when available rather than internal MD5/SHA1 routines