memcmp sockaddr_in doesn't work correctly on Mac OS X 10.9