[cuba] Bugfix configure and compile

o remove a typo when searching for partview
o fix `invalid conversion to non-const` that breaks cuba4 build on some compilers