templates: modify templates to work with local static library