added msync, madvise, and requisite constants for macos and linux