remove unneeded libraries