Fixed CMakeLists to work on 2.6.4 again