Fix lazy building of CSS so that we only rebuild what's needed, based on any dependency in the import tree, and include all the right content on rebuild.