Make grab compile on OS X

Move all the Linux-dependent stuff (CPU affinity and some fancy mmap(2) flags) to #ifdef blocks.

Remove a couple unused fields.