ThreadPool: workaround a std::accumulate hang on mingw