stdio_ext.h needs to include stdio.h, at least to get FILE...
include declarations for new stdio_ext functions (gnulib support)
add and consolidate nasty stdio_ext junk hopefully this resolves the rest of the issues with hideously nonportable hacks in programs that use gnulib.