Fixed bug on PacketSender::send_recv which didn't work under OSX and FreeBSD.