The reference is not needed and should not compile. It compiles on Visual Studio due to a bug.
Big tidy up, new question source.