[gh-162] Move sha1 library to third_party and add to libmisc.