Fixed compiling with Xcode 6.