Fix SDL2 build on Mac/Linux