fix compilation bug in Xcode 6 Beta 3