fixed WIN32 compatibility (use old connect function without IPv6 and bind support)