Added missing memory header for shared_ptr