Fixed PortMidi callbacks. Now works in OSX.