fftw: Allow fftw to work with texinfo-4 and texinfo-5

Back port from the official fftw git repository. Should be part of
the next release (v3.3.4).