Detect C++11 features automatically