Updated swift for Xcode 6.0 and Xcode 6.1 compilation.