Only compile OpenCL and CUDA code when available