Best practice to link with C code