Fix build problem with newer versions of Xcode.
Thanks to Jon Simpson and Valerii Hiora for pointing out the fix.