Add some support for libraries that make multiple .dll/.so/.a/... files

Cabal doesn't know how to build them, but it does know how to install
and register them. In particular, this means that GHC's build system
can use Cabal to install them.