Fix unused imports for ghc 6.12