With the last 3 patches, I can disable h265_high_depth: to compile is faster and rendering at more than 8-bit depth is not possible.
Using the 3 patches but not using the “--disable-x265_hidepth” flag in ./configure, compilation works fine, the time is shorter, and I can render at 10-12 bits.
That's OK for me.