cogl: fix build on darwin

Fixes http://hydra.nixos.org/build/5681044