diff --git a/rts/win32/ConsoleHandler.c b/rts/win32/ConsoleHandler.c
index 848d29288d8afcdf746c33d25539800e7b4c7724..f6018f34a8cd61edde8a69a54030809613707b97 100644
--- a/rts/win32/ConsoleHandler.c
+++ b/rts/win32/ConsoleHandler.c
@@ -5,6 +5,8 @@
  *       For the WINIO manager see base in the GHC.Event modules.
  */
 #include "Rts.h"
+#include "MIOManager.h"
+#include "ThreadLabels.h"
 #include <windows.h>
 #include "ConsoleHandler.h"
 #include "Schedule.h"
diff --git a/rts/win32/ThrIOManager.c b/rts/win32/ThrIOManager.c
index 023aee4c1922f5e5c2c3f8c6dda92d55617dcf26..61ccd5379c287f0692ae02cd9a50e4bef4e6de38 100644
--- a/rts/win32/ThrIOManager.c
+++ b/rts/win32/ThrIOManager.c
@@ -9,6 +9,7 @@
  * ---------------------------------------------------------------------------*/
 
 #include "Rts.h"
+#include "IOManager.h"
 #include "ThrIOManager.h"
 #include "MIOManager.h"
 #include "rts/OSThreads.h"
diff --git a/utils/fs/fs.c b/utils/fs/fs.c
index a5377af7e2bc4494792f492b1f51d66db2c6cc87..d64094cae158f6c8427435c7926ca5d2ea163f20 100644
--- a/utils/fs/fs.c
+++ b/utils/fs/fs.c
@@ -140,7 +140,7 @@ static int setErrNoFromWin32Error (void);
    This function should only be called when the creation of the fd actually
    failed and you want to return -1 for the fd.  */
 static
-int setErrNoFromWin32Error () {
+int setErrNoFromWin32Error (void) {
   switch (GetLastError()) {
     case ERROR_SUCCESS:
       errno = 0;