5.0.2 projects have many errors

The first compiler error you mentioned has been reported several times on the forum:

It is due to a compiler bug in Visual Studio 2015 and it was fixed on the develop branch of JUCE by this Pull Request (https://github.com/WeAreROLI/JUCE/pull/208)

@fabian, @jules: could we get that commit on master as well? As you can see, a lot of people are confused by this issue and the fix is trivial, so there is no risk to port it.