Convenient preparation of a novel class of imidazo[1,5-a]pyridines: decisive role by ammonium acetate in chemoselectivity.