Removed unused libraries. Upgraded the rest.