Fix detecting if the sdl library was properly found