Build system

This adds a CMake-based build system and removes remnants of older build systems.