I had this same problem in UE 4.76 on Win 8.1 64 Bit. Right out of the box could not Add Code to a project without generating a file not found error.
It was fixed by installing the lastest Windows 8.1 SDK, that’s all I did. I didn’t adjust the inheritance lines in the Project Settings.