add #ifdef CL_VERSION_x_x to avoid deprecated / non supported functions