Compatibility hack for Cabal 1.16 and 1.18 - thanks to Gracjan Polak's
hack on hdbc-postgresql.