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

Heh, I guess I still had the uint64_t stuff from your earlier PR in my head.
Added.