We already have rootprefix_noslash as meson variable, export it so that we can also use it in C code. Fixes: #16773