add template modules, ssp, generator, library defines.