Moved from pthread to boost::thread.