refs #6449 further playing with const pointers.

as Unix seems does not want to accept non-const pointer as const