Found the solution: putting -std=gnu17 in CLFAGS as a config option. Freedesktop 25.08 ships with GCC 15 which defaults to gnu23 which triggers the issue described above.