Fix #419, cannot compile in xcode 6 beta 2