Fix construction of SocketAddress object