[Haskell] Workaround for building profiling libs and apps with Cabal