It looks like MacOSX11.3.sdk shipped with some missing headers by Xcode 12.5.
I downloaded MacOSX11.1.sdk.tar.xz from https://github.com/phracker/MacOSX-SDKs/releases and set my SDKROOT environment variable, and was able to compile the simple program.
Please update a new SDK :)