Support NSColor to CGColor for OSX 10.7 and lower