Cross-platform asychronous I/O (@jneu fork for pull requests)