mescc: Mes C Library: Fix ungetc.