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.
Merge pull request #45 from shepheb/master

Support latest cabal-install