Creating dynamic lib