Fix GCC issue with sleep_for.