Attempt at fixing backward compatibility with CMake < 2.8.12