VS2013 fixes for develop-poc-5 branch

Since there have been some changes since the latest poc-5 release, the Windows build has failed. This was fixed by @programmerTim in commit 500553d3b100a1aea2cbf4237eaa4c2302db9c6d for the develop branch, but has not been merged into this branch yet.