Update CMAKE to work with version 2.8.7