Fix some memory leaks on OS X.  Major leaks are plugged, but it seems there are a few small  ones likely related to Kevent objects.