cpp.make template: add support for creating .a and .so libs