Rename eof to buf_eof, fixes windows build