fix MacOS compilation

/usr/include/MacTypes.h defines nil as NULL. This borks boost (and any
library which uses the not-so-uncommon word "nil").