cmake: support 2.8.7