Fix Wunused warnings
Link yarpcar to YARP_init only on static builds like for yarpmod