Fix GLR support

I was trying to use the GLR feature in Happy and noticed that my generated parser would not compile, so I trivial fixed a template, and while at it, also made changes such that the GLR examples directory would compile and run.