Add ifdef to the SO_RCVTIMEO code

Not all platforms have a SO_RCVTIMEO socket option.