Sdl build fix

fixes Issue #4621