I can't help you with the C++ issues either- I stay away from that abomination, which is why I'm using Swift- but as Dave says, you just checked out some random commit from trunk? I suggest you use a snapshot commit instead, which you can get with update-checkout
or by manually checking a tag out with git.
The most recent snapshots are from May 18 and if you're still getting these strange C++ errors, you could try building the same snapshot on linux and compare the particular build command and preprocessed file to see if there are any significant differences.