added support to build library