Made EOF detection ISO C compliant, removed non-portable -Og option from makefile