Cross-platform asynchronous I/O