Incorporated fixes + initialised all variables to avoid unset values giving random effects this fixes the weird hanging sometimes noticed (sleep random nr of seconds is fixed).
Removed unused methods. Now the makefile works just fine and creates a proper executable cliclick with current installed xcode version...