[Git][ghc/ghc][master] hadrian: enable terminfo if --with-curses-* flags are given