Fixed running update in separate thread on windows