ExternalTools: use a unique_ptr to be sure we don't leak memory

2 jobs for master in 2 minutes and 49 seconds (queued for 3 seconds)