Only use posix_fadvise if the system provides it
Avoid TEMP_FAILURE_RETRY

This is a GNU extension.
Make aio support conditional on HAVE_AIO
Assume aio only available on Linux