Fix iOS 6 deprecation warnings

Signed-off-by: Alexsander Akers <a2@pandamonia.us>
Merge pull request #171 from a2/master

Fix iOS 6 deprecation warnings