[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 5 commits: hadrian: enable terminfo if --with-curses-* flags are given