Compatibility hack for Cabal 1.16 and 1.18

 Thanks to Gracjan Polak's hack on hdbc-postgresql.