diff --git a/reactos/lib/acledit/acledit.xml b/reactos/lib/acledit/acledit.xml
index aaed4ff9abd..4f6f934a11a 100644
--- a/reactos/lib/acledit/acledit.xml
+++ b/reactos/lib/acledit/acledit.xml
@@ -4,6 +4,7 @@
+
ntdll
kernel32
advapi32
diff --git a/reactos/lib/acledit/stubs.c b/reactos/lib/acledit/stubs.c
index 4cd61b916bf..db77d78ac49 100644
--- a/reactos/lib/acledit/stubs.c
+++ b/reactos/lib/acledit/stubs.c
@@ -17,6 +17,8 @@
#include
#include "acleditint.h"
+ULONG DbgPrint(PCH Format,...);
+
#define UNIMPLEMENTED \
DbgPrint("ACLEDIT: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__)
diff --git a/reactos/lib/dxguid/dxguid.xml b/reactos/lib/dxguid/dxguid.xml
index 266c80f1cc1..bf66b3f4f36 100644
--- a/reactos/lib/dxguid/dxguid.xml
+++ b/reactos/lib/dxguid/dxguid.xml
@@ -1,5 +1,6 @@
+
dxguid-mingw.c
diff --git a/reactos/lib/epsapi/epsapi.xml b/reactos/lib/epsapi/epsapi.xml
index 8f4043c3526..8f8b666ca83 100644
--- a/reactos/lib/epsapi/epsapi.xml
+++ b/reactos/lib/epsapi/epsapi.xml
@@ -1,5 +1,6 @@
+
drivers.c
modules.c
diff --git a/reactos/lib/freetype/freetype.xml b/reactos/lib/freetype/freetype.xml
index 91db2024d33..6c131c16caa 100644
--- a/reactos/lib/freetype/freetype.xml
+++ b/reactos/lib/freetype/freetype.xml
@@ -5,6 +5,7 @@
+
ntoskrnl
hal
diff --git a/reactos/lib/fslib/vfatlib/vfatlib.xml b/reactos/lib/fslib/vfatlib/vfatlib.xml
index ee8c53f3a8c..6461a0d928b 100644
--- a/reactos/lib/fslib/vfatlib/vfatlib.xml
+++ b/reactos/lib/fslib/vfatlib/vfatlib.xml
@@ -1,6 +1,7 @@
.
+
fat12.c
fat16.c
fat32.c
diff --git a/reactos/lib/fslib/vfatxlib/vfatxlib.xml b/reactos/lib/fslib/vfatxlib/vfatxlib.xml
index a85b004c504..23ae2ddc3b7 100644
--- a/reactos/lib/fslib/vfatxlib/vfatxlib.xml
+++ b/reactos/lib/fslib/vfatxlib/vfatxlib.xml
@@ -1,6 +1,7 @@
.
+
fatx.c
vfatxlib.c
diff --git a/reactos/lib/lzexpand/lz32.xml b/reactos/lib/lzexpand/lz32.xml
index 58a79f4d799..b55eabbfd94 100644
--- a/reactos/lib/lzexpand/lz32.xml
+++ b/reactos/lib/lzexpand/lz32.xml
@@ -2,6 +2,7 @@
.
+
ntdll
kernel32
lzexpand_main.c
diff --git a/reactos/lib/msimg32/msimg32.xml b/reactos/lib/msimg32/msimg32.xml
index 620a937b044..ab87b44d1b3 100644
--- a/reactos/lib/msimg32/msimg32.xml
+++ b/reactos/lib/msimg32/msimg32.xml
@@ -3,6 +3,7 @@
.
include
+
ntdll
kernel32
gdi32
diff --git a/reactos/lib/samlib/samlib.c b/reactos/lib/samlib/samlib.c
index 1839ada4749..47ed3f2c59f 100644
--- a/reactos/lib/samlib/samlib.c
+++ b/reactos/lib/samlib/samlib.c
@@ -28,6 +28,8 @@
/* INCLUDES *****************************************************************/
#include
+#include
+#include
#include
#include
diff --git a/reactos/lib/samlib/samlib.xml b/reactos/lib/samlib/samlib.xml
index 6c71021f701..3341c936408 100644
--- a/reactos/lib/samlib/samlib.xml
+++ b/reactos/lib/samlib/samlib.xml
@@ -2,6 +2,7 @@
.
+
ntdll
kernel32
advapi32
diff --git a/reactos/lib/snmpapi/debug.h b/reactos/lib/snmpapi/debug.h
index 13a623f8fb3..5f57ca527e4 100644
--- a/reactos/lib/snmpapi/debug.h
+++ b/reactos/lib/snmpapi/debug.h
@@ -17,6 +17,8 @@
#define DEBUG_ULTRA 0xFFFFFFFF
+ULONG DbgPrint(PCH Format,...);
+
#ifdef DBG
extern DWORD DebugTraceLevel;
diff --git a/reactos/lib/snmpapi/snmpapi.xml b/reactos/lib/snmpapi/snmpapi.xml
index da548cbf893..708f8827509 100644
--- a/reactos/lib/snmpapi/snmpapi.xml
+++ b/reactos/lib/snmpapi/snmpapi.xml
@@ -1,6 +1,7 @@
.
+
ntdll
diff --git a/reactos/lib/strmiids/strmiids.xml b/reactos/lib/strmiids/strmiids.xml
index 9ce2672f0f0..b12bc236435 100644
--- a/reactos/lib/strmiids/strmiids.xml
+++ b/reactos/lib/strmiids/strmiids.xml
@@ -1,4 +1,5 @@
+
strmiids.c
diff --git a/reactos/lib/twain/twain_32.xml b/reactos/lib/twain/twain_32.xml
index 99aa9da0632..6d26c23e0da 100644
--- a/reactos/lib/twain/twain_32.xml
+++ b/reactos/lib/twain/twain_32.xml
@@ -1,6 +1,7 @@
.
+
wine
ntdll
diff --git a/reactos/lib/winspool/winspool.xml b/reactos/lib/winspool/winspool.xml
index f8bb483eef1..cc6e33605c0 100644
--- a/reactos/lib/winspool/winspool.xml
+++ b/reactos/lib/winspool/winspool.xml
@@ -1,6 +1,7 @@
.
+