Switch to CMake build system

QtCreator supports CMake anyway and it just means people are free to use
their own editors more easily.