Fix Swift compiler error with Xcode beta 3