Fixed inclusion of OpenCL in static tests on OSX.