Set CFGDIR when building via XCode to enable to run the generated binary

Hi,

This patch ensures that cppcheck is built via XCode with CFGDIR properly defined, so that the generated binary runs again (otherwise one gets an error that the installation is broken). Thanks to consider merging.

Regards,
  Simon