Getting rid of unnecessary libraries