Allow ThreadPool to be configured with an arbitrary number of threads.

Ah, C++11, it's so great! :smiley: