Mark private package visibility and MimaExcludes.