Remove redundant libs.