Make ns-heat-subdomains compile with shared pointers.