Changing configure.ac and Makefile.am to allow compiling in modern distributions
Adding flag to use stdc++11 in g++