Clean up global_optargs
Remove uses of collections crate
Remove superfluous externs