Remove boost_thread dependency