Fixed deprecation warnings that show up when building against the OS X 10.10

Fixed warnings when building with a minimum deployment target set to OS X 10.10.