OSX and BeOS networking fix (socklen_t)