basic OpenCL errors handling for C