Add -Wunused-packages to the packages (#9663)