diff --git a/reactos/lib/3rdparty/mingw/mingw.rbuild b/reactos/lib/3rdparty/mingw/mingw.rbuild
index bcc68282a5f..d32f3fee439 100644
--- a/reactos/lib/3rdparty/mingw/mingw.rbuild
+++ b/reactos/lib/3rdparty/mingw/mingw.rbuild
@@ -4,6 +4,7 @@
include
+ kernel32
_newmode.c
_wgetopt.c
atonexit.c
@@ -30,14 +31,12 @@
include
- mingw_common
crt0_c.c
crtexe.c
dllargv.c
include
- mingw_common
crt0_w.c
crtexe.c
@@ -45,7 +44,6 @@
include
- mingw_common
dllargv.c
crtdll.c