win32 arch calculation fix