diff --git a/tools/icinga2-setup-agent/AgentWizard.cs b/tools/icinga2-setup-agent/AgentWizard.cs
index 2904412da..be3aa4bd3 100644
--- a/tools/icinga2-setup-agent/AgentWizard.cs
+++ b/tools/icinga2-setup-agent/AgentWizard.cs
@@ -3,13 +3,10 @@ using System.IO;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
-using System.Data;
-using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Threading;
using System.Net.NetworkInformation;
-using System.Xml;
using Microsoft.Win32;
using System.IO.Compression;
using System.Diagnostics;
diff --git a/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj b/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj
index 2a0feeca8..23ea4aac7 100644
--- a/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj
+++ b/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj
@@ -13,7 +13,7 @@
512
- AnyCPU
+ x86
true
full
false
@@ -23,7 +23,7 @@
4
- AnyCPU
+ x86
pdbonly
true
bin\Release\
@@ -32,7 +32,7 @@
4
- AnyCPU
+ x86
pdbonly
true
bin\RelWithDebInfo\
@@ -41,10 +41,10 @@
4
- AnyCPU
+ x86
pdbonly
true
- bin\RelWithDebInfo\
+ bin\MinSizeRel\
TRACE
prompt
4
@@ -57,16 +57,9 @@
-
-
-
-
-
-
-
+
-