examples: fix build on macOS with gtk+-quartz-3.0