Change var to const where possible

This changes var to const almost everywhere except in the list of zmqErrno, which can be const too if we make zmqErrno a public type...