Add a hack to support both Cabal-1.16 and Cabal-1.18

Tested and works on my machine. HDBC-mysql does not build with cabal v 1.16 and 1.18 without this change! Fixes issue #9.