Takes option -o into account when compiling .c files

Mantis issue 6475
could you name the new parameter with a label `~output` or `~output_name` to be able to distinguish both parameters better at call sites?