Add CMake scripts from dev to stable0.5.

This should help with building PISM 0.5 on pacman.