fixing CGColor problem on 10.7