Fix cmake build files to work with cmake 3.0