diff --git a/Visual Studio Projects/ALTAIR.vcproj b/Visual Studio Projects/ALTAIR.vcproj
index 28bda3c4..30204e21 100644
--- a/Visual Studio Projects/ALTAIR.vcproj
+++ b/Visual Studio Projects/ALTAIR.vcproj
@@ -27,7 +27,7 @@
NUL
+if not exist ../../windows-build/winpcap/Wpdpack/Include/pcap.h goto _notice
+if not exist ../../windows-build/pthreads/pthread.h goto _notice
+goto _done_build
+:_notice
+echo ****************************************************
+echo ****************************************************
+echo ** The required build support is not available. **
+echo ****************************************************
+echo ****************************************************
+type 0ReadMe_Projects.txt
+exit 1
+:_done_build
+
+if not exist ..\.git goto _done_hooks
+if exist ..\.git\hooks\post-commit goto _done_hooks
+echo *****************************************************
+echo *****************************************************
+echo ** Installing git hooks in newly cloned repository **
+echo *****************************************************
+echo *****************************************************
+copy git-hooks\post* ..\.git\hooks\
+:_done_hooks
+
+:_SetId
+SET GIT_COMMIT_ID=
+if not exist ..\.git-commit-id goto _NoId
+for /F %%i in (..\.git-commit-id) do SET GIT_COMMIT_ID=%%i
+:_NoId
+SET OLD_GIT_COMMIT_ID=
+if not exist .git-commit-id.h echo.>.git-commit-id.h
+for /F "tokens=3" %%i in (.git-commit-id.h) do SET OLD_GIT_COMMIT_ID=%%i
+if "%GIT_COMMIT_ID%" equ "%OLD_GIT_COMMIT_ID%" goto _IdGood
+echo #define SIM_GIT_COMMIT_ID %GIT_COMMIT_ID% >.git-commit-id.h
+:_IdGood
+:_done_id
\ No newline at end of file
diff --git a/Visual Studio Projects/S3.vcproj b/Visual Studio Projects/S3.vcproj
index c06bf470..74c4f754 100644
--- a/Visual Studio Projects/S3.vcproj
+++ b/Visual Studio Projects/S3.vcproj
@@ -27,7 +27,7 @@
NUL)
+ endif
GCC_VERSION = $(word 3,$(shell $(GCC) --version))
COMPILER_NAME = GCC Version: $(GCC_VERSION)
LTO_EXCLUDE_VERSIONS = 4.5.2