add 2.2.X support for TwirlCompiler