Fixed a race condition when compiling on Windows with /Zi.