Update CppClient.cpp

Fixed initialization of the objects of type `std::shared_ptr`. Raw `new` results in a suboptimal allocation pattern (and is potentially exception-unsafe) -- `std::make_shared` is the recommended practice when using `std::shared_ptr`, see:
- http://en.cppreference.com/w/cpp/memory/shared_ptr/make_shared
- http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/STL11-Magic-Secrets
- http://blog.emptycrate.com/node/474
- http://channel9.msdn.com/Series/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-3-of-n