fix #include_next infinite loop bug, see http://savannah.nongnu.org/bugs/?31357