Fixed compilation error with clang.

Previously, trying to compile with clang would result in the error: assigning to 'objc_object *' from incompatible type 'DockIconClickEventHandler *'
Merge pull request #6 from linki/fix/maccompile

Fixed compilation error with clang.