Add XeLaTeX and MakeGlossaries support.

Add support for XeLaTeX files compilations and a new option for MakeGlossaries.
(Closes #4.)