Fix linker args in C/CPP samples