update the way to build lib