Fixed deprecated warnings on Xcode 6.1 and OS X 10.10