diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 860205146c..d0d8a7bf36 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -171,7 +171,9 @@
WINVER=0x0400
_WIN32_IE=0x0400
STRICT
+ $(EXTRACFLAGS)
+
diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl
index 811fb1e3ef..77522ba1f4 100644
--- a/build/bakefiles/config.bkl
+++ b/build/bakefiles/config.bkl
@@ -99,6 +99,7 @@
+
..
@@ -106,5 +107,21 @@
$(SRCDIR)/$(WXTOPDIR)
-
+
+
+
+
+ -fvtable-thunks
+
+ $(GCCFLAGS) -DHAVE_W32API_H
+
+