Fix #419, cannot compile in xcode 6 beta 2

Fix issue #419