Fix compiler warning in NDEBUG builds
Add a real build system based on CMake