Resolve build failures with older versions of Swift.

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