Regain access to windows files
If your stupid compiler steadily changes the rights and owner of some of your precious source code files and even as local admin you can't regain access to them:
Just run a cmd shell with admin rights, change to the affected folder and run
takeown.exe /F thatfile.txt
Now it should be yours and you can change the rights via a normal gui dialog windows.