SDL2 bugs that should be fixed


I noticed bugs in SDL2 in Linux 64bit and in Windows 11 (MSYS2+MinGW 64bit).

When you use Valgrind to debug the SDL2 program it gives an error about improper use of dynamic linking load routines and in Linux about calls to DRI code. They should be fixed.

It seems to trigger some hard-to-find bugs in my code (bogus keypresses in SDL_PollEvent() and other problems [the number of lines in parallel code is 100.000+ so it is hard to say where the exact error is]).