fix msvc build: std::future does not have a swap() method.