Added support of zmq and jsoncpp static linking.
Minor: fixed buld error.