added static to all internal functions in midifile.h