Make dependency generation work a little bit better (stage1 goes through OK; yet to do a stage2, but thought I'd commit before I hit the sack).