Small changes.

I have made small changes to your ThreadPool code. I intend to use this in log4cplus 2.0+ to implement asynchronous logging.