Install texlive and other dependencies when building docs.

This is a version of #3550 that actually works.