Turns out that libmpich1.0c2 package contains six libraries or library variants (shared object files), one of which uses libx11, and it's not the one fftw2 needs. fftw2, in turn, contains two times three library variants (mpi, threads, and vanilla), and I don't think Math.Transforms.FFT uses mpi, which is the one that actually depends on libmpich.