Pause the game when window loses focus, fixes #513