anchor.diff:      cd "%DEPS%\protobuf\vsprojects"
       IF %GENERATOR%==%GENERATOR_VS2008% (
           :: Upgrade the VS2005 files to VS2008
  +        :: TODO 64-bit VS2008 not yet possible on VS2008!
           cecho {0D}Upgrading Google Protobuf project files.{# #}{\n}
           vcbuild /c /upgrade libprotobuf.vcproj $ALL
           vcbuild /c /upgrade libprotoc.vcproj Release
  
positive.code:    
     cecho {0D}Extracting Google Protobuf 2.4.1 sources to "%DEPS%\protobuf".{# #}{\n}
     7za x -y protobuf-2.4.1.zip
     IF NOT %ERRORLEVEL%==0 GOTO :ERROR
     ren protobuf-2.4.1 protobuf
     IF NOT EXIST "%DEPS%\protobuf". (
        cecho {0E}Failed to rename %DEPS%\protobuf-2.4.1 to %DEPS%\protobuf. Permission denied for your account?{# #}{\n}
  
negative.code: )
  
  IF NOT EXIST "%DEPS%\zlib". (
      cd "%DEPS%"
      cecho {0D}Extracting zlib 1.2.7 package to "%DEPS%\zlib"{# #}{\n}
      mkdir zlib
      7za e -y zlib-1.2.7.tar.gz
      7za x -y -ozlib zlib-1.2.7.tar
      del /Q zlib-1.2.7.tar
  )
  
  IF NOT EXIST "%DEPS%\zlib\lib\Release\zlibstat.lib". (
      cd "%DEPS%\zlib"
      mkdir lib
      mkdir lib\Release
      mkdir lib\Debug
      mkdir include
      cd zlib-1.2.7
      IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  
      IF %VS_ARCH%==x64 (
          cd contrib\masmx64
          call bld_ml64.bat
      ) ELSE (
          cd contrib\masmx86
          call bld_ml32.bat
      )
  
      cd ..\..
      cd contrib\vstudio\%VC_VER%
      cecho {0D}Building zlib 1.2.7{# #}{\n}
      MSBuild zlibvc.sln /p:configuration="Release" /nologo /m:%NUMBER_OF_PROCESSORS%
      MSBuild zlibvc.sln /p:configuration="Debug" /nologo /m:%NUMBER_OF_PROCESSORS%
      cd ..\..\..
      copy /Y contrib\vstudio\%VC_VER%\%VS_ARCH%\ZlibStatRelease\zlibstat.lib ..\lib\Release
      copy /Y contrib\vstudio\%VC_VER%\%VS_ARCH%\ZlibStatDebug\zlibstat.lib ..\lib\Debug   
      copy /Y *.h ..\include\
  ) ELSE (
     cecho {0D}zlib 1.2.8 already built. Skipping.{# #}{\n}
  )
  
  :: ZZIPLIB
  IF NOT EXIST "%DEPS%\zziplib-0.13.59.tar.bz2". (
      cd "%DEPS%"
      rmdir /S /Q "%DEPS%\zziplib"
      cecho {0D}Downloading zziplib 0.13.59{# #}{\n}
      wget http://sourceforge.net/projects/zziplib/files/zziplib13/0.13.59/zziplib-0.13.59.tar.bz2/download
      IF NOT EXIST "%DEPS%\zlib-1.2.7.tar.gz". GOTO :ERROR
  ) ELSE (
      cecho {0D}zziplib 0.13.59 already downloaded. Skipping.{# #}{\n}
  )
  
  IF NOT EXIST "%DEPS%\zziplib". (
      CD "%DEPS%"
      cecho {0D}Extracting zziplib 0.13.59 package to "%DEPS%\zziplib"{# #}{\n}
      mkdir zziplib
      7za e -y zziplib-0.13.59.tar.bz2
      7za x -y -ozziplib zziplib-0.13.59.tar
      del /Q zziplib-0.13.59.tar
  )
  
  IF NOT EXIST "%DEPS%\zziplib\lib\zziplib.lib". (
     cd "%DEPS%\zziplib"
     mkdir lib
     mkdir include\zzip
     cd zziplib-0.13.59\msvc8
  