Fix compilation issues with wait_all iterator overloads