Palladium-catalyzed N-monoarylation of amidines and a one-pot synthesis of quinazoline derivatives.