Fix "Cabal 1.16" compatibility

Adding a hack is the same as https://github.com/scrive/hdbc-postgresql/commit/e9b2fbab07b8f55ae6a9e120ab0b98c433842a8b