move aio functions to common as they are posix