Resolve prefix when resolving typedef