Raising exceptions on missing imports

I've made these exceptions just to make sure it is clear that this
represents a failure in the build process.  But hopefully the message
in these exceptions is constructive enough that people can easily figure
out what to do if they are raised.