Fix for Fedora 17 and 18 (auto_ptr is deprecated).  Also changed the metric attribute 'daemon' to 'TargetType' and 'aggregate_group' to 'AggregateGroup'. #3515