Improved declarations in fwm.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>
Added watching of SIGPIPE signal (case of very long old connections - long machine sleep case).

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>