fix: issues when building factory standalone
fix: typo
chg: instantiate more templates for NTL 6.0.0

Conflicts:

	factory/ftmpl_inst.cc
Merge pull request #339 from mmklee/templates_sw

Templates sw