Added if(YARP_HAS_ACE) before linking ACE libraries