fix build on OS X Mavericks (missing symbol CGDirectPaletteRef)