qt5webkit: allow 'accelerated canvas patch' to work in non-OpenGL build

introduce guards for the OpenGL related parts