Fix build errors in Xcode 5.