Move C++11 detection to a separate header and add support for VS 2013.