Use SDL_MAJOR_VERSION to detect SDL version