refs #6449 Attempt to fix unix error

(as it seems does not like const pointers for some reasons)