Fixed build errors occurring with Xcode 6 Beta 2