waf: add check for typos in dependencies to the build step as well

Same sanity check as the previous commit, but for the build step.