Project validation using Xcode 4.6

Xcode 4.6 enables various C-lang and GCC warnings.
Renamed -optionsForSubelement to -foreignID

Somewhat more meaningful.
Merge pull request #4 from royratcliffe/master

Xcode 4.6 project validation; -optionsForSubelement becomes -foreignID