Added missing newlines to EOF in several files.

Enabled GCC_WARN_ABOUT_MISSING_NEWLINE = YES in the demo xcodeproj as a check on this validity.