also build fftw3_threads libraries, and enhance sanity checks