added Xcode 6 Beta 6 compatibility