Get rid of %ld compilaiton warnings
Return bytes >= 0x80 from hgetc() correctly