added linux window resize fix from SFML repo