sha1dc: allow building with the external sha1dc library