Changes to CMakeLists.txt to support gcc 3.x