Add explicit "const" when casting pointers. No binary changes.
By Massimo Cetra.