removing boost::thread, using tinythread instead