add XeLaTeX support: listings and appendix not work