Extensively tested build system with respect to different proper and broken cuda setups. Found and fixed two more bugs, one in the code fences and one in the cuda indicator for the makefile.