Fix recv() issue on OS X.

The previous fix was wrong, had to use setsockopt() instead.
YOLO coding is best coding.