Make Compile.cmd properly handle build errors