Fix warnings when compiling tests for OpenCL 2.0