Fixed compiler warnings and errors from PC.

Just for master branch for now.
Added new PC temp files to .gitignore.
Solution and project changes for PC version.
Fixed a compiler error and added comments.