link with sdl only if it's available