Build cleanups for MacOS

std::ifstream and std::ofstream constructors require const char * rather
than strings

Refs #4884