diff --git a/build/bakefiles/jpeg.bkl b/build/bakefiles/jpeg.bkl
index 6b4840deee..a7f05fdac3 100644
--- a/build/bakefiles/jpeg.bkl
+++ b/build/bakefiles/jpeg.bkl
@@ -26,52 +26,53 @@
$(LIBDIRNAME)
$(SETUPHDIR)
-w-8004 -w-8008 -w-8057 -w-8066
+ -wcd=136
src/jpeg/jcomapi.c
- src/jpeg/jutils.c
- src/jpeg/jerror.c
- src/jpeg/jmemmgr.c
- src/jpeg/jmemnobs.c
- src/jpeg/jcapimin.c
- src/jpeg/jcapistd.c
- src/jpeg/jctrans.c
- src/jpeg/jcparam.c
- src/jpeg/jdatadst.c
- src/jpeg/jcinit.c
- src/jpeg/jcmaster.c
- src/jpeg/jcmarker.c
- src/jpeg/jcmainct.c
- src/jpeg/jcprepct.c
- src/jpeg/jccoefct.c
- src/jpeg/jccolor.c
- src/jpeg/jcsample.c
- src/jpeg/jchuff.c
- src/jpeg/jcphuff.c
- src/jpeg/jcdctmgr.c
- src/jpeg/jfdctfst.c
- src/jpeg/jfdctflt.c
- src/jpeg/jfdctint.c
- src/jpeg/jdapimin.c
- src/jpeg/jdapistd.c
- src/jpeg/jdtrans.c
- src/jpeg/jdatasrc.c
- src/jpeg/jdmaster.c
- src/jpeg/jdinput.c
- src/jpeg/jdmarker.c
- src/jpeg/jdhuff.c
- src/jpeg/jdphuff.c
- src/jpeg/jdmainct.c
- src/jpeg/jdcoefct.c
- src/jpeg/jdpostct.c
- src/jpeg/jddctmgr.c
- src/jpeg/jidctfst.c
- src/jpeg/jidctflt.c
- src/jpeg/jidctint.c
- src/jpeg/jidctred.c
- src/jpeg/jdsample.c
- src/jpeg/jdcolor.c
- src/jpeg/jquant1.c
- src/jpeg/jquant2.c
+ src/jpeg/jutils.c
+ src/jpeg/jerror.c
+ src/jpeg/jmemmgr.c
+ src/jpeg/jmemnobs.c
+ src/jpeg/jcapimin.c
+ src/jpeg/jcapistd.c
+ src/jpeg/jctrans.c
+ src/jpeg/jcparam.c
+ src/jpeg/jdatadst.c
+ src/jpeg/jcinit.c
+ src/jpeg/jcmaster.c
+ src/jpeg/jcmarker.c
+ src/jpeg/jcmainct.c
+ src/jpeg/jcprepct.c
+ src/jpeg/jccoefct.c
+ src/jpeg/jccolor.c
+ src/jpeg/jcsample.c
+ src/jpeg/jchuff.c
+ src/jpeg/jcphuff.c
+ src/jpeg/jcdctmgr.c
+ src/jpeg/jfdctfst.c
+ src/jpeg/jfdctflt.c
+ src/jpeg/jfdctint.c
+ src/jpeg/jdapimin.c
+ src/jpeg/jdapistd.c
+ src/jpeg/jdtrans.c
+ src/jpeg/jdatasrc.c
+ src/jpeg/jdmaster.c
+ src/jpeg/jdinput.c
+ src/jpeg/jdmarker.c
+ src/jpeg/jdhuff.c
+ src/jpeg/jdphuff.c
+ src/jpeg/jdmainct.c
+ src/jpeg/jdcoefct.c
+ src/jpeg/jdpostct.c
+ src/jpeg/jddctmgr.c
+ src/jpeg/jidctfst.c
+ src/jpeg/jidctflt.c
+ src/jpeg/jidctint.c
+ src/jpeg/jidctred.c
+ src/jpeg/jdsample.c
+ src/jpeg/jdcolor.c
+ src/jpeg/jquant1.c
+ src/jpeg/jquant2.c
src/jpeg/jdmerge.c
diff --git a/build/bakefiles/png.bkl b/build/bakefiles/png.bkl
index 99943cf6c2..37cef92caf 100644
--- a/build/bakefiles/png.bkl
+++ b/build/bakefiles/png.bkl
@@ -25,25 +25,26 @@
cond="wxUSE_LIBPNG=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
$(LIBDIRNAME)
$(INC_ZLIB)
- -w-8004
+ -w-8004
+ -wcd=124
- src/png/png.c
- src/png/pngerror.c
- src/png/pnggccrd.c
- src/png/pngget.c
- src/png/pngmem.c
- src/png/pngpread.c
- src/png/pngread.c
- src/png/pngrio.c
- src/png/pngrtran.c
- src/png/pngrutil.c
- src/png/pngset.c
- src/png/pngtrans.c
- src/png/pngvcrd.c
- src/png/pngwio.c
- src/png/pngwrite.c
- src/png/pngwtran.c
- src/png/pngwutil.c
+ src/png/png.c
+ src/png/pngerror.c
+ src/png/pnggccrd.c
+ src/png/pngget.c
+ src/png/pngmem.c
+ src/png/pngpread.c
+ src/png/pngread.c
+ src/png/pngrio.c
+ src/png/pngrtran.c
+ src/png/pngrutil.c
+ src/png/pngset.c
+ src/png/pngtrans.c
+ src/png/pngvcrd.c
+ src/png/pngwio.c
+ src/png/pngwrite.c
+ src/png/pngwtran.c
+ src/png/pngwutil.c
diff --git a/build/bakefiles/tiff.bkl b/build/bakefiles/tiff.bkl
index 7a15de891a..49bed66d41 100644
--- a/build/bakefiles/tiff.bkl
+++ b/build/bakefiles/tiff.bkl
@@ -44,6 +44,7 @@
$(INC_JPEG)
-w-8004 -w-8012 -w-8057 -w-8060 -w-8066
-w2
+ -wcd=124
OS2_32
__MSDOS__