more fixes, ip6 address support, and improved win32 compatibility