Added zeromq build.
Reorganized dependencies and linking a bit.