Account for minor API changes in asyncio.