Fix SocketRef test failing with zmq 4, clean up build warning.