cogl: fix build on darwin (close #924)