Added compiling target Android support
Thanks, this will need to be reworked so there are no standalone ifdefs just for android. Compatibility wrappers should be hidden in files, detected at build time and the implementation switched by some ifdef. I'll apply the patches without changes as this is what you've probably tested and do the updates myself.
As this will become supported config, we'll need github actions for that too.
The qsort_r can be emulated by providing a thread-local storage and calling qsort with a stub function that will call the comparator with the stored data. There's more qsort_r usage and likely will be in the future so we should not need to do the emulation everywhere.
Now added to devel. I've reworked it so it's not touching every file and moved it to common. I have no way to test it, hopefully github actions will be able to, some sort of support should be there.