widl: Use existing functions to retrieve attributes for typelibs.