Added Attribute support and some CMake cleanups for Linux build.
Added C++11 definition to GCC builds.