removed 'mv -f' and 'cp -p' from configure and makefile

I link against the "tre" library to get regex.h
$HOME changed to $home in src/utils.c
disabled P_tmpdir in src/files.c
typedef issue in src/files.c (ind const struct passwd vs int)
src/global.c : disabled strings.h include

final issues: conflict between libdraw and libbsd: bind and ntohs
mkstemp does not exist (add fake function to src/files.c)
S_ISLNK not defined (define _RESEARCH_SOURCE)
TRE: isblank undefined (use nisblank from src/chars.c to get it.)


#CPPFLAGS="-I/sys/include/ape/tre" 
# 

CFLAGS="-D_POSIX_SOURCE -D_SUSV2_SOURCE -D_BSD_EXTENSION -D_REGEXP_EXTENSION -D_RESEARCH_SOURCE" configure --prefix=/sys --exec-prefix=/$objtype --datadir=/sys/lib/nano --sysconfdir=/sys/lib/nano --disable-nls --enable-tiny

APE build: attempting to build with PDcurses (fgb/curses on contrib).

