Fixed dup_counter
Moved toplevel function calls to cmdline.c
Removed some headers to make rmlint compile a tad faster