Parallel synthesis of a library of benzoxazoles and benzothiazoles using ligand-accelerated copper-catalyzed cyclizations of ortho-halobenzanilides.