Fix building GHC with profiling