Adding fix for LBVH builder when compiling with CUDA but no GPU is present.