String usage cleanups, realpath platform-dependent

Drastic reduction in compiler warnings/messiness when compiling with a
recent gcc in a unix environment