Fixed some build errors on new digest code