Remove useless libraries.