ANSI C fixes.
Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.

diff --git a/memory/selector.c b/memory/selector.c
index d2cf909..1a2891c 100644
--- a/memory/selector.c
+++ b/memory/selector.c
@@ -12,6 +12,7 @@
 #include "stackframe.h"
 #include "process.h"
 #include "debugtools.h"
+#include "toolhelp.h"
 
 DEFAULT_DEBUG_CHANNEL(selector)