MACOSX: Add framework to switch CoreMIDI API between 10.2 and 10.4.

This will break PPC/10.2 until the relevant code is integrated.