Fix compilation errors for clang
Remove cmake support
Add tup support