Removed a lot of unnecessary includes and fixed the compile errors.

diff --git a/misc/error.c b/misc/error.c
index 49ed983..00e71f5 100644
--- a/misc/error.c
+++ b/misc/error.c
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <string.h>
 
+#include "winbase.h"
 #include "windef.h"
 #include "stackframe.h"
 #include "debugtools.h"