Add support for platform specific newlines; finish moving command line parsing to libgc_common