WIN32 & testcase: made window a static singleton