The one for mohqueue was also reported on sr-dev by Henning, iirc.
The one for app_python seems not to be related to the code of kamailio, but something in the headers included from/by python devel library. There is no `_POSIX_C_SOURCE` in kamailio code for app_python, therefore is not something that can be fixed here, I guess. Maybe updates of those packages will fix it. On the other hand, python 2 is no longer maintained, our module will stay there till old OSes that ship it are still maintained, but I won't invest any effort in developing that module further, python3 should be everywhere these days.