made code more friendly to old versions of fftw