Fix compile error on SDL2

Hi. Small fixes for SDL2 build.