fix XCode 6 beta 4 build error

fix XCode 6 beta 4 build error, Swift has something changed.