Add just enough types and constants to get mmap, stat and fsync running on OS X