Fix build with dynamic GL.

Change-Id: I9dafdea8745e680a20c162496f3b5089b38037de
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>