Added threaded flag to ghc