OS X 10.7 compatiable CGColorRef conversion