Added missing preprocessed headers for new_
Protect against Windows nasty min macro
Updated when_*/wait_* to use the standard futures