Corrected the automaticproxydetection so it now builds

Like it did before on my machine but I probably forgot to save