anchor.diff:  REM Clone zlib (libssh2 dependency) and checkout the appropriate tag
   IF !ENABLE_ZLIB! EQU !TRUE! (
   	IF NOT EXIST "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" (
  -		ECHO | SET /P=Cloning zlib ... 
  -		!GIT! clone !ZLIB_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" > !LOG_ZLIB_BUILD! 2>&1
  +		ECHO Cloning zlib !ZLIB_BRANCH_TAG_VERSION! > "!LOG_ZLIB_BUILD!"
  +		ECHO | SET /P=Cloning zlib !ZLIB_BRANCH_TAG_VERSION! ... 
  +		!GIT! clone --depth 1 --branch !ZLIB_BRANCH_TAG_VERSION! --single-branch !ZLIB_REPOSITORY_URL! "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" >> "!LOG_ZLIB_BUILD!" 2>&1
   		IF !ERRORLEVEL! EQU 0 (
   			ECHO done.
  -			PUSHD "!DEPENDENCIES_SOURCE_DIRECTORY!\!ZLIB_DIRECTORY!" > NUL
  -			ECHO | SET /P=Checking out !ZLIB_BRANCH_TAG_VERSION! ... 
  -			ECHO. >> !LOG_ZLIB_BUILD!
  -			!GIT! checkout !ZLIB_BRANCH_TAG_VERSION! >> !LOG_ZLIB_BUILD! 2>&1
  -			IF !ERRORLEVEL! EQU 0 (
  -				ECHO done.
  -			) ELSE (
  -				ECHO FAILED!
  -				ECHO 	See !LOG_ZLIB_BUILD! for more details
  -				EXIT /B !EXIT_CODE_CHECKOUT_FAILED!
  -			)
  -			POPD
   		) ELSE (
   			ECHO FAILED!
   			ECHO 	See !LOG_ZLIB_BUILD! for more details
  
positive.code: 	ECHO | SET /P=Configuring libuv ... 
  	REM Modify the libuv build script to ensure proper Visual Studio detection
  	SET LIBUV_VCBUILD_SCRIPT=vcbuild.bat
  	IF "%~5" == "!FALSE!" (
  		SET LIBUV_VCBUILD_SCRIPT=vcbuild-modified.bat
  		TYPE vcbuild.bat | FINDSTR /V /C:"if defined WindowsSDKDir goto select-target" | FINDSTR /V /C:"if defined VCINSTALLDIR goto select-target" > !LIBUV_VCBUILD_SCRIPT!
  	)
  	ECHO !LIBUV_VCBUILD_SCRIPT! release nobuild !LIBUV_TARGET_ARCHITECTURE! !LIBUV_LIBRARY_TYPE! >> "%~7"
  	CALL !LIBUV_VCBUILD_SCRIPT! release nobuild !LIBUV_TARGET_ARCHITECTURE! !LIBUV_LIBRARY_TYPE! >> "%~7" 2>&1
  	IF NOT !ERRORLEVEL! EQU 0 (
  		ECHO FAILED!
  		ECHO 	See %~7 for more details
  		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
  	)
  	ECHO done.
  	ECHO | SET /P=Building libuv ... 
  	ECHO !MSBUILD! uv.sln /T:libuv /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7"
  	!MSBUILD! uv.sln /T:libuv /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7" 2>&1
  	IF NOT !ERRORLEVEL! EQU 0 (
  		ECHO FAILED!
  		ECHO 	See %~7 for more details
  		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
  	)
  	ECHO done.
  	ECHO | SET /P=Installing libuv ...
  	MKDIR "%~2\!LIBRARY_INCLUDE_DIRECTORY!"
  	IF NOT !ERRORLEVEL! EQU 0 (
  		ECHO FAILED!
  		ECHO 	See %~7 for more details
  		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
  	)
  	XCOPY /E /Y include "%~2\!LIBRARY_INCLUDE_DIRECTORY!" >> "%~7" 2>&1
  	IF NOT !ERRORLEVEL! EQU 0 (
  		ECHO FAILED!
  		ECHO 	See %~7 for more details
  		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
  	)
  	MKDIR "%~2\!LIBRARY_BINARY_DIRECTORY!"
  	IF NOT !ERRORLEVEL! EQU 0 (
  		ECHO FAILED!
  		ECHO 	See %~7 for more details
  		EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
  	)
  	XCOPY /E /Y Release\lib "%~2\!LIBRARY_BINARY_DIRECTORY!" >> "%~7" 2>&1
  	IF NOT !ERRORLEVEL! EQU 0 (
  		REM Try again in the other location libuv likes to put files
  		XCOPY /Y Release\*.* "%~2\!LIBRARY_BINARY_DIRECTORY!" >> "%~7" 2>&1
  		IF NOT !ERRORLEVEL! EQU 0 (
  			ECHO FAILED!
  			ECHO 	See %~7 for more details
  			EXIT /B !EXIT_CODE_BUILD_DEPENDENCY_FAILED!
  		)
  	)
  	ECHO done.
  	IF "%~6" == "!TRUE!" (
  		ECHO | SET /P=Cleaning libuv build ... 
  		ECHO !MSBUILD! uv.sln /T:Clean /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7"
  		!MSBUILD! uv.sln /T:Clean /P:Configuration=Release /P:Platform=!LIBUV_VC_TARGET_ARCHITECTURE! /CLP:NoSummary;NoItemAndPropertyList;Verbosity=minimal /NOLOGO >> "%~7" 2>&1
  		IF EXIST Release RMDIR /S /Q Release >> "%~7" 2>&1
  		ECHO done.
  	)
  	POPD
  
negative.code: 	REM Determine if Boost atomic should be cloned
  	IF !ENABLE_TESTS! EQU !FALSE! (
  		REM Clone Boost atomic and checkout the appropriate tag
  		ECHO Gathering Boost atomic ^(and dependencies^) !BOOST_BRANCH_TAG_VERSION! > "!LOG_BOOST_CLONE!"
  		ECHO | SET /P=Gathering Boost atomic ^(and dependencies^) !BOOST_BRANCH_TAG_VERSION! ... 
  		SET "BOOST_ATOMIC_DEPENDENCIES=atomic assert config mpl preprocessor static_assert type_traits"
  		IF NOT EXIST "!ABSOLUTE_DEPENDENCIES_DIRECTORY!\!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\include" MKDIR "!ABSOLUTE_DEPENDENCIES_DIRECTORY!\!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\include"
  		REM Store current Visual Studio tools environment variables
  		FOR %%A IN (!BOOST_ATOMIC_DEPENDENCIES!) DO (
  			!GIT! clone --depth 1 --branch !BOOST_BRANCH_TAG_VERSION! --single-branch !BOOST_REPOSITORY_URL!/%%A "!DEPENDENCIES_SOURCE_DIRECTORY!\!BOOST_DIRECTORY!\%%A" >> "!LOG_BOOST_CLONE!" 2>&1
  			IF NOT !ERRORLEVEL! EQU 0 (
  				ECHO FAILED!
  				ECHO 	See !LOG_BOOST_CLONE! for more details
  				EXIT /B !EXIT_CODE_CLONE_FAILED!
  			)
  		)
  		ECHO done.
  