Replaced RefCounter used in List and Map with smart pointers
Removed RefCounter class which is no longer used
Some trivial refactorings concerning removing RefCounter
Improved the CMake check for C++11 support.