Check for sys/mman.h before trying to use madvise.