Add LaTeX support, and change yet again C/C++ building