there is another workaround which doesn't need change to the source code, which is what the CI was actually doing without me knowing, which is disabling support for symlinks and so creating them as normal files.
Normally I won't expect them to be used on the building part.. but still