CuI-catalyzed C-N bond formation and cleavage for the synthesis of benzimidazo[1,2-a]quinazoline derivatives.