https://github.com/ImageMagick/ImageMagick/pull/516
diff --git a/coders/rle.c b/coders/rle.c
index 9a31baa..6b513da 100644
--- a/coders/rle.c
+++ b/coders/rle.c
@@ -278,12 +278,12 @@
         p=colormap;
         for (i=0; i < (ssize_t) number_colormaps; i++)
           for (x=0; x < (ssize_t) map_length; x++)
-	  {
+          {
             *p++=(unsigned char) ScaleQuantumToChar(ScaleShortToQuantum(
               ReadBlobLSBShort(image)));
             if (EOFBlob(image) != MagickFalse)
               ThrowRLEException(CorruptImageError,"UnexpectedEndOfFile");
-	  }
+          }
       }
     if ((flags & 0x08) != 0)
       {
diff --git a/configure b/configure
index cb5f7d3..9c5aac9 100755
--- a/configure
+++ b/configure
@@ -4519,7 +4519,7 @@
 
 MAGICK_VERSION=7.0.6-1
 
-MAGICK_GIT_REVISION=20195:9caa8b0:20170611
+MAGICK_GIT_REVISION=20211:8ca3583:20170622
 
 
 # Substitute library versioning
@@ -30828,6 +30828,7 @@
 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
 
   CFLAGS="$ZLIB_CFLAGS $CFLAGS"
+  LIBS="$ZLIB_LIBS $LIBS"
 fi
 
  if test "$have_zlib" = 'yes'; then
diff --git a/configure.ac b/configure.ac
index 8342c27..e3ef9eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1673,6 +1673,7 @@
 if test "$have_zlib" = 'yes'; then
   AC_DEFINE(ZLIB_DELEGATE,1,Define if you have ZLIB library)
   CFLAGS="$ZLIB_CFLAGS $CFLAGS"
+  LIBS="$ZLIB_LIBS $LIBS"
 fi
 
 AM_CONDITIONAL(ZLIB_DELEGATE, test "$have_zlib" = 'yes')