Forward declare boost::thread instead of including boost/thread.hpp in internal_thread.hpp.