C++11 autodetect in configure script, fixes #27, fixes #20