adjusted makefiles to handle fftw more flexibly