more cleanup, xmidi.c compiles with many warnings