Update jim-aio.c

Some changes to allow for readable/writable on pipes/files and sockets.