More portability changes.
Add a dummy Dbg to fcheck.c just in case we are debugging one of the C
files it includes.
Removed the reliance on the resize program for ANSI. We can use the
vt100 codes to get the size. TERMINFO still relies on resize or
environment variables.