Xcode 4.6 project validation; -optionsForSubelement becomes -foreignID

Renamed -optionsForSubelement to -foreignID because that more accurately describes what the method really does.

Xcode 4.6 project validation adds C-lang and GCC warnings.