MIDI: Clear percussion channel mapping when switching to non-perc instrument
Check for presence of xmlto and fix missing-file error when building in subdir

Thanks to NY00123 for pointing this out.