Fixed CMake on versions lower than 3.0