stdlib compilation updates
bounds check for midifrq