Check if the superproject has already enabled C++11 before enabling it in CMakeLists.txt. Added utility file atomic.hpp to select the correct atomics header to work around issues with ancient GCC 4.4.