You generate tbb.def when on ARM Win32, yet you use it when on any Win32. This seems suspicious...