Remove references to .ForEach

* .ForEach is removed in PCL and official suggested
  action is to replace with regular foreach construct.
Fix custom namespace for XmlNoteWriter