Merge pull request #22 from Ace17/master

Autotooling: allow out-of-tree builds.
Memory leak fix in CoreMidi and addition of UserData pointer to error callback.