I have (almost) solved this myself. I used an early version of the provided code and it compiled.
The project is now working and I will look at the latest code to try and identify the problem.