Remove uneeded libraries