this is mildly ugly, but less ugly than gnulib trying to poke at the definition of the FILE structure...