I think you might be executing the
build.bat from a regular console. You need to run the file from the Visual Studio Console, which automatically runs for you some scripts to put different paths for binaries to build C++ projects. Check for the VS Console in the Visual Studio application group in your Start Menu.
Let me know if you still cannot make it work.