slang: fix termcap detection in cross builds.