Conditionally compile deprecated classes since iOS7
Fix no new line at end of file
Merge pull request #4 from Automatic/fix-warnings

Fix warnings