Emit imports for extension classes outside current package

@JakeWharton @swankjesse