fix cmake
fix clang compilation
fix clang
fix warnings
add back identical mvs