pidl: use unused attribute only if supported by feature macro