changing from std::thread to boost::thread