It seems I can't attach files to someone else's ticket.
While patch #1266603 is one way, this is the way Autotools prefer such things to be declared (since "-I..." is not an include subject to dependency tracking, it's a flag).
Patch against CVS HEAD
Patch against CVS HEAD