Fix static initialization problem w/ Qt window system