update autoconf macro to check for C++-11 (makes C++-11 flag optional)