Set CFGDIR when building via XCode to be able to run the generated binary.
Merge pull request #207 from simartin/xcode_cfgdir_def

Set CFGDIR when building via XCode to enable to run the generated binary
CLI: Made the 'failed to load std.cfg' nicer and more informative.