Switch to the CMake build system for CTiles

The previous Makefile was uncompilable on Ubuntu 12.04 with gcc-4.7
CMake should provide a more generic and cross-platform solution.