Support latest cabal-install

New versions of cabal-install no longer support settings
GHC_PACKAGE_PATH. This patch switches to using --package-db=foo instead
when running cabal.

It also cleans up warnings.