cmake: work with 2.8.7 for Ubuntu