Picking up from #8111. Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This gets rid of the inclusion of <future> in util.hh, cutting compilation time by ~20s (CPU time). Issue #4045.