Get sodium C++ library to build on Mac OS X

Also use make_shared in test_sodium.cpp instead of explicitly creating objects before passing them to the shared_ptr constructor.