[idl] support yarp_idl_to_dir(foo.thrift foo SOURCES HEADERS INCLUDE_PATHS) to remove some magic