Add support for different OS/languages for LaTeX makefiles