Resolving class declaration in imported namespace