added configure check for libtinfo