remove empty rc.h, ref.h; reorder to reduce forward declarations.