Make the configure script check for a globally-installed GHC terminfo library, and bump GHC versions.