Include necessary header & use shared pointer. Refs #7636.