Improved error reporting from OpenCL.

Using a control integer, report first error that occurs in a kernel.