Note to self: To make sure the includes you pass to the configure script are passed to the makefile, put them in INCLUDES, not in CFLAGS.
Looks like I had system-wide ffmpeg headers installed, after all (the LDFLAGS were carried forward, so it *linked* with 7.1.1, it just compiled against older headers).