Adding OpenCL 1.2 required for NVIDIA when build with C++11

These conditions need to be present when tests are built with C++11.