Fix bug is sampler wrapper when compiling for OpenCL 2.0