Fix deprecation warnings when compiled with a deployment target of 7.1