Add environment.h,cpp to XCode project and restore build from XCode.

This patch adds the new environment.* and tinyxml/* files to the XCode project, and restores build from the IDE. Thanks to consider pulling.

Best regards,
  Simon