Fix compilation with AppleClang 8.1.0.8020042 (#1020)