Move sdl shim function definitions out of sdl2_compat.h

This prevents us from including the OpenGl header files in every file that uses sdl2_compat.h