[Win32] Add error checking in .bat files

As requested [on forum](http://forum.xbmc.org/showthread.php?tid=145172&pid=1358151#pid1358151).
After checks were added, a few existing errors were discovered and fixed.