\input{subfilepreamble}
+
\begin{document}
\input{subfileprefix}
+\ifSubfilesClassLoaded{\appendix\setcounter{chapter}{1}}{}
\chapter{Auxiliary \texorpdfstring{\glsentrytext{MTASK}}{mTask} type classes}%
\label{chp:mtask_aux}
\lstset{basicstyle=\tt\footnotesize}