Update cmake

Updates cmake from 2.8.12 to 3.0.0.