Patch to build with GHC 7.0.x

I just imported the missing cabal code straight into the repo with conditional compilation.