fix issue with vertical space in castGroup (tei.sty)
add switch in preamble for xetex and luatex

* main.tex works now with xetex and luatex
* the fontenc package is loaded for xetex and luatex (it's needed
  because of output encoding issues with some non ascii characters)