Update CMake to check for C++11
Further main stubbing
More stubbing of main