Fix build warnings if posix_madvise isn't available.