another obvious fix would be porting stdio file functions into
stand library, so code would go smooth from -lz, but former seems to be
a minimal-change-compliant approach.
read() /* oread() */ not being checked for errors/eof or
not checked for error value (-1), which would result in
bad kernels loaded, i/o errors not reported and such.