Make the project build from a fresh clone

Also, some other minor cleanup.

* Add HintPaths for all references.
* Add missing version.exe needed for post-build event.
* Ignore bin and obj directories.
* Add executable permission for all executables.