Make sure -lfftw3 happens before -lmkl_rt