Allow compiling with clang++ using -std=c++11 flag

configure script should run in c++ mode when checking functions
otherwise clang++ gives an error.