Takes option -o into account when compiling .c files

Mantis issue 6475