Trying to compile with clang under Mac OS X 10.8 (XCode 4.5) results in the error:
assigning to 'objc_object *' from incompatible type 'DockIconClickEventHandler *'
clang seems to be much more picky than gcc about the type a variable it assigns an Objective-C instance to, and a simple class objc_object doesn't cut it.