Changed unique_ptr to shared_ptr to hide cppzmq inside library. Fixes notary building.