avoid segfault on clGetDeviceInfo