Fixed some compilation errors for systems without fftw or cfitsio.
Fixed more compilation problems (when lacking of fftw3l).