build system: the new template recursion flag must be enabled for all builds, not only debug.