Separate setup of <memory> and shared_ptr

Invocation of <memory> and shared_ptr varies across
Mac OS X deployment versions and Mac <-> Windows.
So here I separate them so they can be controlled independently.