Adding support for OpenGL and OpenCL applications