Fix net_addr_from_str for IPV6 on non-Windows systems