Fix compilation warning caused by use of "auto"
Add implementation of ThreadPool::stop()