[client] apply patch from Ilya Tumaykin for terminal setting type

This commit also fixes a 'possible use of uninitialized value' warning from gcc for
the old_c_lflag variable.
[server] don't print PID file existence warning in daemon mode (suggested by Ilya Tumaykin)
added 2.5.1 material
updated version and release date for 2.5.1