Added LG_Error** argument to lg_hit_context and lg_read_window. This is
necessary for reporting bad encoding chains.