Made the code build on MacOSX 10.9 by appending std:: to a couple of functions, and by uncommenting a configure.ac line.
Merge pull request #4 from snomos/gramchk

Made the code build on MacOSX 10.9.