Here is TH fix for Setup.hs and Cabal 1.17

I don't think MIN_VERSION_Cabal works in Setup.hs yet (and even when it does it will only work if you have a newer cabal).

http://hackage.haskell.org/trac/hackage/ticket/326