Some initial hacks to get NP to compile on Darwin.

Don't actually merge this to master though -- I think it'll break Linux in its current form (iassert.c, at least).