Attempt to be Macintosh friendly with timing.
Fix to my fix for Macs. The dangers of including code from online sources without testing...
Thanks to Richard Worrall.
Update makefile to build with CUDA