Fixed two deprecation warnings.

When compiling against iOS SDK 7, there were two deprecation warnings that can easily be fixed...