to avoid possible link to system libtinfo.
/cc @tomo
This will create a new commit in order to revert the existing changes.