@AmiNTT:
The best way to make it compatible with all these configurations is to shoot for the lowest common denominator. If it runs on 3.9 and is system friendly, it will run on all those other OS versions too.
Once it has got to this stage, tuning it for individual setups will be relatively simple.