Changed loop in list using zlist_first and zlist_next as in zmq