Remove unnecessary libraries