Fixed issue that prevented usage od datagram sockets.