fix required CMake version

CMakeLists.txt doesn't work on CMake 2.6.
export(PACKAGE, name) requires CMake 2.8 or greater.