anchor.diff:  rd /s /q  lz4 >nul 2>&1
   del /f /q lz4 >nul 2>&1
   mklink /j lz4 lz4-%LZ4_VERSION% >nul 2>&1
  -if not "%MSCOMPILER%" == "" (
  -  for /F %%i in ('qtpaths.exe --install-prefix') do echo %%i | find "msvc2015" >NUL
  -  if not ERRORLEVEL 1 (
  -    devenv lz4\visual\VS2015\lz4.sln /project liblz4 /rebuild "Release|%BUILDTARGET%" >nul 2>&1
  -  ) else (
  -    devenv lz4\visual\VS2017\lz4.sln /project liblz4 /rebuild "Release|%BUILDTARGET%" >nul 2>&1
  -  )
  -  if ERRORLEVEL 1 (
  -    echo Build failed.
  -    echo LZ4 not available.
  -    exit /b
  -  )
  -) else (
  -  cd %BASEDIR%3rdparty\lz4\lib
  -  qmake -o makefile.liblz4
  -  %MAKE% -f makefile.liblz4 clean >nul 2>&1
  -  %MAKE% -f makefile.liblz4 >nul 2>&1
  +for /F %%i in ('qtpaths.exe --install-prefix') do echo %%i | find "msvc2015" >NUL
  +if not ERRORLEVEL 1 (
  +  set VS=VS2015
  +) else (
  +  set VS=VS2017
  +)
  +devenv lz4\visual\%VS%\lz4.sln /project liblz4 /rebuild "Release|%BUILDTARGET%" >nul 2>&1
  +if ERRORLEVEL 1 (
  +  :: Shows error
  +  devenv lz4\visual\%VS%\lz4.sln /project liblz4 /build "Release|%BUILDTARGET%"
  +  echo;
  +  echo Build failed.
  +  echo LZ4 not available.
  +  exit /b
   )
   
   cd %BASEDIR%src
  
positive.code: :break
  
  :: vcvarsall.bat setup
  if not "%MSCOMPILER%" == "" (
    set MAKE=nmake
    if /i "%Platform%" == "x64" (
      set VCVARSOPT=amd64
      set BUILDTARGET=x64
      set ENVSTR=Environment to build for 64-bit executable  MSVC / Qt
    ) else (
      set VCVARSOPT=x86
      set BUILDTARGET=win32
      set ENVSTR=Environment to build for 32-bit executable  MSVC / Qt
    )
  
    echo %QT_INSTALL_PREFIX% | find "msvc2015" >NUL
    if not ERRORLEVEL 1 (
      if /i "%Platform%" == "x64" (
        set CMAKEOPT=Visual Studio 14 2015 Win64
      ) else (
        set CMAKEOPT=Visual Studio 14 2015
      )
    ) else (
      if /i "%Platform%" == "x64" (
        set CMAKEOPT=Visual Studio 15 2017 Win64
      ) else (
        set CMAKEOPT=Visual Studio 15 2017
      )
    )
  ) else (
    set MAKE=mingw32-make -j%NUMBER_OF_PROCESSORS%
    set ENVSTR=Environment to build for executable MinGW / Qt
  )
  SET /P X="%ENVSTR%"<NUL
  qtpaths.exe --qt-version
  
  
  for %%I in (qtenv2.bat) do if exist %%~$path:I set QTENV=%%~$path:I
  set TFENV=tfenv.bat
  
negative.code: echo Compiling MongoDB driver library ...
  devenv libmongoc.sln /project mongoc_static /rebuild Release >nul 2>&1
  if ERRORLEVEL 1 (
    :: Shows error
    devenv libmongoc.sln /project mongoc_static /build Release
    echo;
    echo Build failed.
    echo MongoDB driver not available.
    exit /b
  