Dirty schedulers example with macros

Its pretty quickly apparent that there's a couple handy macros that'll
help writing dirty NIFs that are backwards compatible.