--- tests/pixbuf-random.c~0	2013-11-14 06:59:53.000000000 +0200
+++ tests/pixbuf-random.c	2013-11-14 07:01:03.482838400 +0200
@@ -39,7 +39,7 @@
       int i;
       GdkPixbufLoader *loader;
       
-      f = fopen ("pixbuf-random-image", "w");
+      f = fopen ("pixbuf-random-image", "wb");
       if (!f)
 	{
 	  perror ("fopen");
--- tests/pixbuf-randomly-modified.c~0	2013-09-23 16:06:17.000000000 +0300
+++ tests/pixbuf-randomly-modified.c	2013-11-14 07:23:33.886468600 +0200
@@ -54,7 +56,7 @@
       guchar byte = g_random_int_range (0, 256);
       
       img_copy[index] = byte;
-      f = fopen ("pixbuf-randomly-modified-image", "w");
+      f = fopen ("pixbuf-randomly-modified-image", "wb");
       if (!f)
 	disaster ("fopen");
       fwrite (img_copy, size, 1, f);
--- tests/pixbuf-threads.c~0	2013-09-23 16:06:17.000000000 +0300
+++ tests/pixbuf-threads.c	2013-11-14 06:57:04.231267300 +0200
@@ -42,7 +42,7 @@
   self = g_thread_self ();
   loader = gdk_pixbuf_loader_new ();
 
-  file = fopen (filename, "r");
+  file = fopen (filename, "rb");
   if (!file)
     {
       g_warning ("failed to open %s\n", filename);
--- tests/pixbuf-icc.c~0	2013-12-17 04:38:09.000000000 +0200
+++ tests/pixbuf-icc.c	2013-12-21 14:34:49.122250000 +0200
@@ -81,9 +81,13 @@ main (int argc, char **argv)
   g_test_init (&argc, &argv, NULL);
 
   g_test_add_data_func ("/pixbuf/icc/png", "icc-profile.png", test_nonincremental);
+#ifdef HAVE_PROGRESSIVE_JPEG
   g_test_add_data_func ("/pixbuf/icc/jpeg", "icc-profile.jpeg", test_nonincremental);
+#endif
   g_test_add_data_func ("/pixbuf/icc/png/incremental", "icc-profile.png", test_incremental);
+#ifdef HAVE_PROGRESSIVE_JPEG
   g_test_add_data_func ("/pixbuf/icc/jpeg/incremental", "icc-profile.jpeg", test_incremental);
+#endif
 
   return g_test_run ();
 }
