anchor.diff:  )
   
   IF NOT EXIST "%DEPS%\zlib". (
  -   CD "%DEPS%"
  -   cecho {0D}Extracting zlib 1.2.8 package to "%DEPS%\zlib"{# #}{\n}
  -   mkdir zlib
  -   7za e -y zlib-1.2.8.tar.gz
  -   7za x -y -ozlib zlib-1.2.8.tar
  -   del /Q zlib-1.2.8.tar
  -   cecho {0D}Building zlib 1.2.8{# #}{\n}
  -   cd zlib
  -   mkdir lib
  -   mkdir lib\Release
  -   mkdir lib\Debug
  -   mkdir include
  -   cd zlib-1.2.8
  -   IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  -
  -   cd contrib\masmx86
  -   call bld_ml32.bat
  -
  -   cd ..\..
  -   cd contrib\vstudio\%VC_VER%
  -
  -   MSBuild zlibvc.sln /p:configuration="Release" /p:Platform="Win32" /nologo /m:%NUMBER_OF_PROCESSORS%
  -   MSBuild zlibvc.sln /p:configuration="Debug" /p:Platform="Win32" /nologo /m:%NUMBER_OF_PROCESSORS%
  -
  -   REM IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  -
  -   cd ..\..\..
  -   copy /Y contrib\vstudio\%VC_VER%\x86\ZlibStatRelease\zlibstat.lib ..\lib\Release
  -   copy /Y contrib\vstudio\%VC_VER%\x86\ZlibStatDebug\zlibstat.lib ..\lib\Debug
  -   copy /Y *.h ..\include\
  +    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.8.tar.gz". GOTO :ERROR
  -) ELSE (
  -   cecho {0D}zziplib 0.13.59 already downloaded. Skipping.{# #}{\n}
  +    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
  -   cd 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
  
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: 
  :: Ogg
  IF NOT EXIST "%DEPS%\ogg". (
      cecho {0D}Cloning Ogg into "%DEPS%\ogg".{# #}{\n}
      svn checkout http://svn.xiph.org/tags/ogg/libogg-1.3.0/ "%DEPS%\ogg"
  )
  
  IF NOT EXIST "%DEPS%\ogg\win32\%VS2008_OR_VS2010%\%WIN32_OR_X64%\Release\libogg_static.lib". (
      cd "%DEPS%\ogg\win32\%VS2008_OR_VS2010%"
      cecho {0D}Building Ogg. Please be patient, this will take a while.{# #}{\n}
      MSBuild libogg_static.sln /p:configuration=Debug /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
      MSBuild libogg_static.sln /p:configuration=Release /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
      IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  ) ELSE (
      cecho {0D}Ogg already built. Skipping.{# #}{\n}
  )
  
  :: Vorbis
  IF NOT EXIST "%DEPS%\vorbis". (
      cecho {0D}Cloning Vorbis into "%DEPS%\vorbis".{# #}{\n}
      svn checkout http://svn.xiph.org/tags/vorbis/libvorbis-1.3.3/ "%DEPS%\vorbis"
  )
  
  IF NOT EXIST "%DEPS%\vorbis\win32\%VS2008_OR_VS2010%\%WIN32_OR_X64%\Release\libvorbis_static.lib". (
      cd "%DEPS%\vorbis\win32\%VS2008_OR_VS2010%"
      cecho {0D}Building Vorbis. Please be patient, this will take a while.{# #}{\n}
      MSBuild vorbis_static.sln /p:configuration=Debug /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
      MSBuild vorbis_static.sln /p:configuration=Release /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
      IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  ) ELSE (
      cecho {0D}Vorbis already built. Skipping.{# #}{\n}
  )
  
  :: Theora
  IF NOT EXIST "%DEPS%\theora". (
      cecho {0D}Cloning Theora into "%DEPS%\theora".{# #}{\n}
      svn checkout http://svn.xiph.org/tags/theora/libtheora-1.1.1/ "%DEPS%\theora"
  )
  
  IF NOT EXIST "%DEPS%\theora\%WIN32_OR_X64%\Release_SSE2\libtheora_static.lib". (
      cd "%DEPS%\theora\win32\VS2008"
      cecho {0D}Building Theora. Please be patient, this will take a while.{# #}{\n}
      MSBuild libtheora_static.sln /p:configuration=Debug /t:libtheora_static /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
      MSBuild libtheora_static.sln /p:configuration=Release_SSE2 /t:libtheora_static /clp:ErrorsOnly /nologo /m:%NUMBER_OF_PROCESSORS%
      REM IF NOT %ERRORLEVEL%==0 GOTO :ERROR
  ) ELSE (
     cecho {0D}Theora already built. Skipping.{# #}{\n}
  )
  