Modified CMakeLists.txt to be compatible with CMake v2.6.4.