Lefschetz pencils and crossed homomorphisms