Introjucer: fixed some compiler warnings.
Stopped MidiFile writing an end-of-track event if the data provided already contained one.