#52 improve maximized behavior under Windows