Two modules fail building with this option, so we force users to disable them. Small cleanup based on 2.1 branch and cherry-pick 01e65c4555 to fix support for NDK r20 (fixes #30688).
01e65c4555