Remove some zeromq leftovers.
Rewrite ifdef's to be compatible with FreeBSD.