Removing unneeded libraries