Use autoconf macro to enable C++11