added code to allow ray tracer compilation without cuda.