sdl2: add hooks for pyinstaller