Rework nuweb to build with CMake