Remove unneeded libs.