Use public domain SHA1 code, remove libgcrypt dependency
Merge branch 'master' into resize