don't parse resolv.conf on WIN32
try to detach from the console if daemonise is true on WIN32
use checkRoot() which also handles WIN32 paths correctly
SO_REUSEADDR has completely different semantics on WIN32 so don't use it