GCC compatibility fix on ThreadPool.hpp