Make NFFT work on 32 bit systems

and add a 3D performance test