Keep only version of sqrDist that take references as arguments.
Restrict operator== to TemplatePoint objects.
Merge pull request #347 from TomFischer/FixCompileIssuesOnWindows

Fix compile issues on windows