Added guard based on OpenCL version as some errors are version specific