Added the ability to specify flags that will only be used when linking for C++, and flags that will only be used when linking for C.