Backport autoconf changes to detect C++11 flags.
Merge pull request #4 from edmodo/fix-0.9.1-c11ac

Backport autoconf changes to detect C++11 flags.