finish build unique name for include hierarchies, plus supporting code