[mycpp/runtime fix] Call clearerr() on EOF as well