Fixed the example for new SFML versions.