Protect against Windows nasty min macro
Updated when_*/wait_* to use the standard futures