remove #undefs from termcap.c