remove redundant libs