medic: fix LexerInput to work across platforms