Work around SDL "restore bug" in windows

https://bugzilla.libsdl.org/show_bug.cgi?id=2510

This commit attempts to solve issue #28