Project validation using Xcode 4.6

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

Somewhat more meaningful.