make source file for icharstream

so _eos could be defined statically