fix cmake build to find fftw_threads 

Hi,

As requested, here's  a pull request (not something I'm familiar with) of my changes.

It is somewhat different to the previous patch I sent. I have found _and modified_ a cmake file from the casacor project ( http://casacore.googlecode.com/svn-history/r20954/trunk/cmake/FindFFTW3.cmake ).