Moved CXX11 detection to its own file.