add include header file ws2tcpip.h  for sockaddr_in6
initial sin6 var
no daemon function on win32, add a macro to check