Adapt to the new SFML version