Import midiseq.c Windows fix from jack2 (tweaked)