Unable to compile source. Complaining about Visual Studio installation

I downloaded UE4 source from Github and copied Required dependancies. Installed Visual Studio 2013 Express for Desktop. My Environment Variable is correctly set to D:\Microsoft Visual Studio 2013\Common7\Tools. But when i start GenerateProjectFiles.bat this is what i get.

2587-error.png

I managed to get past that error by manually adding VS2013/Common7/Tools path in VCToolChain.cs.

Now when i compile i get the below error:

1>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
1>  Building UnrealHeaderTool...
1>  rc.exe PCLaunch.rc
1>  PCH.Shared.CoreUObject.h.cpp
1>  PCH.Shared.Core.h.cpp
1>  Module.Core.1_of_8.cpp
1>  Module.Core.7_of_8.cpp
1>  Module.Core.2_of_8.cpp
1>  Module.CoreUObject.1_of_5.cpp
1>  Module.UnrealHeaderTool.cpp
1>  Module.CoreUObject.4_of_5.cpp
1>  Module.CoreUObject.3_of_5.cpp
1>  Module.CoreUObject.2_of_5.cpp
1>  Module.CoreUObject.5_of_5.cpp
1>  Module.Core.4_of_8.cpp
1>  Module.Core.5_of_8.cpp
1>  Module.Core.8_of_8.cpp
1>  Module.Core.3_of_8.cpp
1>  Module.Core.6_of_8.cpp
1>  Module.Projects.cpp
1>  link.exe UnrealHeaderTool.exe
1>LINK : fatal error LNK1181: cannot open input file 'delayimp.lib'
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\__++DEPOT++__\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool.exe
1>  Cumulative action seconds (4 processors): 0.00 building projects, 340.51 compiling, 0.00 creating app bundles, 0.00 generating debug info, 1.98 linking, 0.00 other
1>  UBT execution time: 110.85 seconds
1>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: D:\__++DEPOT++__\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

SOLVED IT!. Just had to add Library path in UE4 Properties.