Made the code build on MacOSX 10.9 by appending std:: to a couple of functions, and by uncommenting a configure.ac line.