Changed CMake scripts to work correctly if the FFTW threading support was built into the main library instead of a separate library