This patch adds a setlocal command to the beginning of build.bat. Thisis required to deal with buildenv.bat properly, so that PATH (forexample) doesn't expand infintly.Per report from Joachim Wieland.
//Magnus