apply GCC workaround for this_thread::sleep_for