Tweaks to make this work on Mac OS X too

Minor modifications to makes this work on Mac OS X.

Added @autorelease pool to the CoreMIDI C callbacks.