This commit also moved the SDL dependencies into the SDL backend so that -DENABLE_SDL=NO builds do not link against SDL.