Fixed building flags leading to dramatic slow-down in FFTW