allow compiling on SDL2 as well as 1.2