COMP: Fix warning about unused parametetr 'threadId'.
COMP: Add inclusion guards for build without FFTW.

Detected by automated header test.