s3-waf: add check for posix_fadvise().