Fix the #include order for config.h.
Add #include "config.h" directives where needed.

diff --git a/memory/global.c b/memory/global.c
index d2f54cb..23ebf29 100644
--- a/memory/global.c
+++ b/memory/global.c
@@ -5,6 +5,7 @@
  */
 /* 0xffff sometimes seems to mean: CURRENT_DS */
 
+#include "config.h"
 #include "wine/port.h"
 
 #include <sys/types.h>