Fix errors on Xcode 4.
Add IOMessage debug values.
Call CFRunLoopRunInMode() to clean up the event loop.

Prevents the kernel from filling up its buffer and logging error messages. It'd be nice to turn this off entirely, since we don't use it.
Merge branch 'master' into overlays