Fix build script

- Still do not expect build to succeed
Add cmake find_library for zmq
Fix for building

- Consolidate files because of static functions
- Fix function calls
- Use zmq 2.2 (what Debian testing currently has)
- Force linking to zmq and ev for now
- Fix a few typos