Add compile flag -c

Compiling only happens if flag is present.