Remove unused imports.

This commit removes a whole bunch of unused imports. It also adds the
-Ywarn-unused-import option under 2.11.