Fix some warnings for iOS 7.

I have found some compiler warnings and fix in the process of using the kernel of Brushes.
Would you like to review them? Thank you!