Overhaul build system using new `cfd' machinery.