Remove references to unused libs.