COPYFILE_CLONE is only defined on newer macOS versions, using it without check breaks build on build systems running legacy OS and toolchain.
LGTM