Fixed segfault when listing and last line is empty

Conflicts:
	phpdbg_list.c
fix config.w32
basic rework for remote on win
enable console options for remote on win
Merge branch 'xml-protocol'

Conflicts:
	phpdbg.c
	phpdbg_list.c
Fix for 5.4/5.5
C89 compat
fix dll export
enable php_stdiop_write for windows

yet it's unclear whether it'll be usable, but otherwise it breaks
compilation as some places depend on it
add basic stuff to generalize IO
move these to use the mixed read/write routines
override stdin and stdout to be remote, stderr is untouched however

is this ok? some functions want to write a log there ...
several fixes to the new io stuff
increase stack to avoid overflow crash on SIGINT

but should actually check, maybe something is causing a recursive
stack exhaustion
fixed EOL transferred to the client side, fixed strftime fmt string

the windows telnet gets broken output when receiving no '\r'
use MSG_PEEK flag for recv() everywhere
more EOL fixes
increase default recv timeout to 30 seconds
add comment
improve server sock creation and support ipv6