Adding linking for c++