Added linux support in sockets.