Fix .NET 3.5 Build Worker: use x86 target platform as the .NET 3.5 runtime does not support AnyCPU (32-bit preferred)

Use .NET 4.0 Build Worker for Tools.build.
Fix crash in ConvertIfToSwitchAction when there are nested if statements.