Fix build with nogl

Change-Id: I1a70cfdbd450c94759f81d4328d821843541c063
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>