Fix building of executables that use TH with dyn-by-default GHC.
Fix building of executables that use TH with dyn-by-default GHC.

Fixes #1252. Makes the test suite pass with GHC HEAD.

(If 'TemplateHaskell/profiling' still fails, you're probably affected by this
GHC bug: http://ghc.haskell.org/trac/ghc/ticket/7978 . Try compiling a more
recent GHC HEAD.)

ian-ross/cabal,garetxe/cabal,rimmington/cabal,trskop/cabal,mmakowski/cabal,Helkafen/cabal,thomie/cabal,anton-dessiatov/cabal,Peaker/cabal,Heather/cabal,gridaphobe/cabal,ghc-android/cabal,plumlife/cabal,ian-ross/cabal,x-y-z/cabal,corngood/cabal,gbaz/cabal,thomie/cabal,mmakowski/cabal,fpco/cabal,mydaum/cabal,thoughtpolice/cabal,enolan/cabal,lukexi/cabal,sopvop/cabal,kosmikus/cabal,thoughtpolice/cabal,headprogrammingczar/cabal,corngood/cabal,kolmodin/cabal,sopvop/cabal,themoritz/cabal,gridaphobe/cabal,garetxe/cabal,typelead/epm,martinvlk/cabal,rimmington/cabal,plow-technologies/cabal,bennofs/cabal,seereason/cabal,triplepointfive/cabal,mydaum/cabal,typelead/epm,fugyk/cabal,fpco/cabal,x-y-z/cabal,gbaz/cabal,sopvop/cabal,Heather/cabal,anton-dessiatov/cabal,plow-technologies/cabal,trskop/cabal,plumlife/cabal,kosmikus/cabal,lukexi/cabal,edsko/cabal,mightybyte/cabal,beni55/cabal,enolan/cabal,randen/cabal,Peaker/cabal,martinvlk/cabal,seereason/cabal,mightybyte/cabal,kolmodin/cabal,eric-stanley/cabal,themoritz/cabal,triplepointfive/cabal,eric-stanley/cabal,valderman/cabal,valderman/cabal,ghc-android/cabal,Helkafen/cabal,christiaanb/cabal,fugyk/cabal,headprogrammingczar/cabal,bennofs/cabal,edsko/cabal,randen/cabal,beni55/cabal,christiaanb/cabal,themoritz/cabal