FFTW: build single precision as well

This is needed for Julia. This follows Homebrew installation as well:

https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fftw.rb

Also it enables threads.

It builds and seems to work.
But it's kind of a hack. @ahmadia if you have better ideas, that would be great.