Fixed some issues found by winapi_check.

diff --git a/misc/port.c b/misc/port.c
index d75d38b..b1bc48b 100644
--- a/misc/port.c
+++ b/misc/port.c
@@ -4,7 +4,7 @@
  * Copyright 1996 Alexandre Julliard
  */
 
-#include "wine/port.h"
+#include "config.h"
 
 #ifdef __BEOS__
 #include <be/kernel/fs_info.h>
@@ -33,6 +33,8 @@
 # include <pty.h>
 #endif
 
+#include "wine/port.h"
+
 /***********************************************************************
  *		usleep
  */