Fixed NSColor compatibility for deployment targets inferior to 10.8.

This patch allows to dynamically add methods +colorWithCGColor: and -CGColor to NSColor class. These methods will be added only if they are missing from NSColor class i.e.. if running MacOS X prior to 10.8.