Resolve build failures with older versions of Swift.

Authored by featherless on Fri, May 19, 3:48 PM.