Include <kern/debug.h> to get panic() on OS X.
Formalize delay() as an interface that OS X SPL implements.

Define it as osx_delay() in spl/spl-osx.c, which calls IODelay().
Include the proper header from that file.