iOS 6 compatibility

Gets rid of nasty warnings.
Also might break pre-iOS 6 compatibility.

Signed-off-by: djensenius <djensenius@wesleyan.edu>