Update Swift code to compile on Xcode 6.1.1.