build: Make -Ywarn-unused-import 2.11 only & tweaks.