deal with more gcc 4.2 const pointer warnings