cmake: Work with cmake <= 2.8.11