[build] Cleanup configure.ac a bit
[build] Check for C++11 more cleanly