Use term.h (PDCurses) in term.c
Remove os_unix
Guard SIGPIPE/SIGQUIT signals
Link against windows libraries