add lib and build