Sorry about my delay in replying. My first guess is that you might be falling afoul of #include_next selecting an unexpected header (gnulib uses include_next quite a bit).
If you can still reproduce the problem, try paring away as much as you can to produce a minimal example which still demonstrates the problem. Thanks, James.