That must be an outdated copy of /usr/local/lib/php/20131226/zmq.so being referenced because it doesn't use that library any longer.
And the pkg errors indicate that it can't lookup and DNS requests.
The fastest method of recovery is a fresh installation if you can, then use the 'recover config.xml' option in the installer and it will read your current config in before wiping the drive and reinstalling, you'll boot back up good as new.