Added part of the OpenCL 1.2 API.
Added support for defines, helper functions, etc. in the kernels.