fix termcap build