refactoring, replaced boost threading with std::thread in some remaining modules