add fftw3
minor rewrite for less duplication. patch is still applied on all platforms as before, there may have been a reason for it
minor rewrite for less duplication. patch is still applied on all platforms as before, there may have been a reason for it