Fix #186: avoid iOS7 deprecation warnings
Merge pull request #199 from phatmann/fix-io7-deprecation-warnings

Fix #186: avoid iOS7 deprecation warnings