Remove unused SHA1 code and dependencies on unused libraries.