Clear up some unused imports.
Hide implementation details of Dependency checking.

This is in preparation to rewrite dependency checking code to
make it more generic, and capable of handling ABS and AUR packages.