Add precompilation of templates