Add support for cabal 1.18

see also https://github.com/haskell/cabal/issues/1467
     and https://github.com/hdbc/hdbc-postgresql/pull/32