Added -ltermcap to other libraries possibly needed by libreadline.