Fix deprecation of raw *pointers

Convert all raw `*T` pointers to `const *T` pointers. This makes rust-fuse build successfully on the latest rust nightly