Add flags to support "old" kernels made for CUDA or OpenCL.

This should ease porting pre-made kernels to the new interface.  It won't allow compiling cuda kernels for OpenCL devices but it's a start.