Fix errors caused by updated Swift in Xcode6b4.