make posix_madvise standlone