Just as something else to check, do you have antivirus software you can temporarily disable while doing a build?
Any time a program does things where it creates or modifies EXE or DLL files that can cause some antiviruses to go nuts because they need to scan everything under the sun that could possibly be executable code and can go too far when you're creating new ones as part of a build.