Fixed bug with differen sockaddr structs on darwin.