Switched to a CMake buildsystem