Generate dynamic and static libraries