diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 690529d5f8..f428e65743 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -166,7 +166,7 @@
$(DEBUGFLAG)
$(OPTIMIZEFLAG)
multi
- dynamic
+ $(RUNTIME_LIBS)
$(EXTRACFLAGS)
diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl
index 45ffbc0750..34c0f61b8a 100644
--- a/build/bakefiles/config.bkl
+++ b/build/bakefiles/config.bkl
@@ -85,7 +85,9 @@
+
$(top_srcdir)/
+ dynamic
@@ -94,6 +96,16 @@
+
+
MSW