Please don’t copy files into the macOS SDK, this will certainly cause a mess!
The current nightly builds of master and the 6.28 release branch should have this fixed. I will create a release in about two weeks.
Alternatively, if you really need to build from source, delete the existing build directory, run cmake again and build and it should work.
Cheers, Axel