Detect and enable C++11.