Fix FTBFS with GCC 15
There are two internal forward declarations which hadn't a proper parameter definition. Import the upstream patch fixing this issue, so the code is conformant with C23 and builds with the default C standard from GCC 15.
Because this fix happens on the yacc source file, install both flex(1) and bison(1) so that the grammar.c file is properly regenerated.
Closes: #1097173